Support flashing with multiple wifi configs#640
Support flashing with multiple wifi configs#640addshore wants to merge 3 commits intotoitlang:mainfrom
Conversation
|
So, this does change behaviour a little, as I for example had an app that depended on And that now totally crashes. This ties into my desire to be able to tell if wifi is configured or connected, without opening it https://discord.com/channels/918498540232253480/1420350603338584166 |
Fixes toitlang#158 High level changes: - New jag commands for interacting with a list of wifi settings, rather than just one - Changed the underlying computer and device config structure to support mutliple wifis - Added a scan to the jag startup to look for wifis that actually exist, connecting to ones we can see This is very much a first iteration that I have confirmed working on my local device, but I expect it could do with some tidying, but it works now and is something to look at!
The WiFi config structure now uses proper keys ("ssid"/"password")
instead of dotted keys ("wifi.ssid"/"wifi.password") so that existing
Toit apps that check firmware.config["wifi"].get wifi.CONFIG-SSID
continue to work correctly.
f29b1f7 to
6fcb10a
Compare
| defines[JAG-DISABLE-UDP] = true | ||
| if header := headers.single HEADER-CONTAINER-TIMEOUT: | ||
| timeout := int.parse header --if-error=: null | ||
| timeout := int.parse header --on-error=: null |
There was a problem hiding this comment.
It's if-error now.
| timeout := int.parse header --on-error=: null | |
| timeout := int.parse header --if-error=: null |
|
I wonder if we can make the PR simpler by using the fact that the |
Fixes #158
High level changes:
wifi settings, rather than just one
structure to support mutliple wifis
that actually exist, connecting to ones we can see
This is very much a first iteration that I have confirmed
working on my local device, but I expect it could do with
some tidying, but it works now and is something to look
at!