Espruino Wifi - How to reconnect? #5575
Replies: 1 comment
-
Posted at 2017-01-13 by MSol Hi,
Posted at 2017-01-13 by @gfwilliams Nope, this is for http://www.espruino.com/WiFi - the Espruino board with Wifi on it For now, you should be able to do:
I haven't tested that but I believe it should work. However you should also be able to check Posted at 2017-01-13 by user69937 Thanks for the fast answer @gfwilliams. I get the following errors:
and
respectively Right now i use version 1v87, might that cause wifi.getIP() not to work? Posted at 2017-01-13 by @gfwilliams So you've previously done I tested both and they seem to work on 1v91 - but to be honest there shouldn't be a great deal of difference between that an 1v87 as they'll both be using the same module. You need to use
Posted at 2017-01-13 by user69937 Before I did not use a callback function, since the reference says it is optional. With the callback you provided it worked without any issue. Thanks again @gfwilliams ! Posted at 2017-01-13 by @gfwilliams No problem - I guess you were looking at the reference for the There is a reference just for the WiFi board on http://www.espruino.com/WiFi#using-wifi that might be a bit more help |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-13 by user69937
Hello,
since the EspruinoWiFi module does not support all the functions of the WiFi module ( like on('disconnect', ...) or getDetails() ) yet, I was wondering how I can reconnect to my network after a disconnect.
Thanks for any suggestions and best regards
Beta Was this translation helpful? Give feedback.
All reactions