Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple network SSIDs to be defined within secrets.json file #376

Closed
brentru opened this issue Nov 29, 2022 · 4 comments
Closed

Allow multiple network SSIDs to be defined within secrets.json file #376

brentru opened this issue Nov 29, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@brentru
Copy link
Member

brentru commented Nov 29, 2022

Allow for multiple SSIDs to be defined within secrets.json, by priority

"network_type_wifi":[
          {
		"network_ssid":"my_house",
		"network_password":"password"
	},
        {
		"network_ssid":"the_garden",
		"network_password":"password"
	}
]

via @tyeth on #328 (comment)

I think long term I'd love the support of single object and/or array for networks, and to potentially add a key for priority, or potentially just use RSSI based priority upon start/disconnect. i.e. currently it's:

@brentru brentru added the enhancement New feature or request label Nov 29, 2022
@isomorphic85
Copy link

YES, this would be amazing

@brentru
Copy link
Member Author

brentru commented Jun 24, 2024

This should be simple with the new WiFiMulti library inside BSP 3.x

https://docs.espressif.com/projects/arduino-esp32/en/latest/api/wifi.html#wifimulti

@brentru
Copy link
Member Author

brentru commented Jun 24, 2024

@tyeth Want to tackle this one next week?

@tyeth
Copy link
Contributor

tyeth commented Jul 29, 2024

This has been added under the new additional key of alternative_networks.

Please see this playground note for details:
https://adafruit-playground.com/u/tyeth/pages/using-multiple-wifi-network-credentials-in-adafruit-io-wippersnapper-firmware

@tyeth tyeth closed this as completed Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants