Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    How to add more than 1 Wifi Network to pybytes_config.json ?

    Scheduled Pinned Locked Moved Support & Troubleshooting
    jsonpybyteswifiwipy3.0
    2 Posts 2 Posters 783 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      klaus
      last edited by

      What is the correct syntax to add more Wifi networks to pybytes_config.json ? I carefully checked the available documentation, but I could not fin a hint. Below is a sample file that is appearantly not working correctly. I would like to connect to the nwteork "wifi" first. If that is not available, I would like to connect to the network "wifi1". Has anybody come accross this isue yet and maybe already solved it ? I already tried adding multpile Wifi networks at https://pybytes.pycom.io/settings/device and downloaded the resulting pybytes library. The json file always exclusively reflects the first Wifi network in the list.

      {
      "network_preferences": [
      "wifi","wifi1"
      ],
      "device_id": "4914cf28-10d2-4c28-we4e-1cxf2e702bbc",
      "server": "mqtt.pybytes.pycom.io",
      "pybytes_autostart": true,
      "username": "a@b.com",
      "wlan_antenna": 0,
      "wifi": {
      "ssid": "my_first_ssid",
      "password": "123456789012345"
      },
      "wifi1": {
      "ssid": "my_second_ssid",
      "password": "2345678901234567"
      },
      "ota_server": {
      "port": 443,
      "domain": "software.pycom.io"
      },
      "cfg_msg": "Using configuration from config block, written with FW updater"
      }

      1 Reply Last reply Reply Quote 0
      • danD Offline
        dan
        last edited by

        Hi @klaus,

        Currently, you can only configure one WiFi network, and save multiple in the Pybytes console.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom