Espruino/Wifi - getIP() returns undefined but callback receives null,ip #4511
Replies: 1 comment
-
Posted at 2017-09-04 by @gfwilliams That's as you'd expect I think?
So it's that there are two arguments returned by the callback - Since on EspruinoWiFi the WiFi is basically async, Unfortunately when running on ESP8266 the callback format is different - it's something I'd like to change to bring everything more in-line really. Posted at 2017-09-04 by @allObjects doooh... me... sorry bothering you for the callback... now I recall that the first argument is the error, and if first argument - error - is null, second argument is the actual data... I adjusted my code and it does what I needed. THANKS... Adjusted with 'assuming' I get no err(or) in
with console output:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-09-04 by @allObjects
Setup is as documented (and required to start with saved code after power on:
Console:
Even executed much later, I get the same undefined / null.
Beta Was this translation helpful? Give feedback.
All reactions