emfcamp / badge-2024-software

46 stars 29 forks source link

Request: support multiple wifi profiles #123

Open andypiper opened 3 months ago

andypiper commented 3 months ago

Unsure whether this should be an app, or built-in?

Notionally, this is a straightforward (!) as having an array of network settings in the settings, and swapping them in and out as needed. That's the basic idea I had for making an app to do this, anyway. Should it be part of the core though...

andypiper commented 3 months ago

In the meantime I wrote a quick script to poke relevant values into the badge from outside.

RichardoC commented 4 weeks ago

I'd a very quick look at the code, it looks like an app could definitely do this via wifi.connect("custom_ssid", "custom_password", "custom_username") https://github.com/emfcamp/badge-2024-software/blob/aa8f510a6a76e93b0f4aacce9b79663ec28e3bfb/modules/wifi.py#L90

RichardoC commented 3 weeks ago

It's very rough and ready but I've made https://github.com/RichardoC/wifi-switcher/tree/main which should show up in the app store soon. Mind giving it a go and letting me know if it helps? You can use https://docs.micropython.org/en/latest/reference/mpremote.html#mpremote-command-edit to edit the example file

RichardoC commented 2 weeks ago

I've just updated this app to use the built in settings which should make it a bit easier to use

andypiper commented 2 weeks ago

Looking forward to trying this, I don't have my badge handy but will install when I can. Thanks!