Wifi.connect() not executing its callback function #7064
Replies: 1 comment
-
Posted at 2018-02-05 by ClearMemory041063 Give this a try:
Which produces:
At first your code wouldn't load and would complain the module wifi was not found. Posted at 2018-02-05 by ClearMemory041063 Here's another one closer to your version:
And the output:
Posted at 2018-02-05 by espftw Terrific, thanks so much. I was never getting an error at all, certainly not one saying the Wifi module was missing. Is there anything I can do to enable error reporting or something similar? I hate to bother you guys for such simple issues. Posted at 2018-02-06 by ClearMemory041063 Try this one with a valid ssid and key and then try it with a bogus ssid. Look for the disconnect message in the second case. Also there are console.log statements sprinkled in to clarify that the code executes in an order that you may not expect.
Example output:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-05 by espftw
When modifying some simple example code to try and figure out what is going wrong, I noticed that the callback function inside
wifi.connect
is not executing and no console output is shown afterconsole.log('start')
.Beta Was this translation helpful? Give feedback.
All reactions