Wifi instance on save() #4633
Replies: 1 comment
-
Posted at 2018-04-19 by @gfwilliams That's an odd one - just tried here with:
then:
And it seems to work... Could it be that in In that case, it'd be saving the current state (which is in the middle of a connection), but then Having said all that, saving the network details the way you're doing (re-saving all your code) isn't ideal. In 1v96 I added
So now when you change your wifi details it modifies just the wifi details in a file called Posted at 2018-04-23 by Eyzi Hi Gordon! Thanks for the reply. My bad for not noticing the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-04-18 by Eyzi
Hello,
I'm having trouble removing the previous instance of the Wifi connection when I call the
save()
function. (see attached image)I have a function
setConfig(options)
where I set variables like the Wifi SSID, password, device name, etc, and I'd like to be able to save these variables to the flash memory on the fly. This function has asave()
function at the end which callsonInit()
again. I noticed that the previous Wifi connection reconnects on top of the new Wifi connection. I tried explicitly disconnecting it and setting thewifi
variable to null, but it still does the same thing.Is there anything I can do to remove the previous instance? Or is this normal and I shouldn't be worried about it?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions