How to add more than 1 Wifi Network to pybytes_config.json ?
-
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"
} -
Hi @klaus,
Currently, you can only configure one WiFi network, and save multiple in the Pybytes console.
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