wifi.getIP()
=undefined
Uncaught Error: Function "a" not found!
at line 1 col 165
...ce(15,-1);else if("OK"==d){a(null,b);return}return h}
^
in function "b" called from line 1 col 25
d=void 0;var f;b&&(f=b(a))?(d=p,b=f):clearTimeout(e);void 0=...
^
in function "d" called from line 1 col 324
...c&&(ec,n=!0);n||d&&d(k)}a=a.substr(f+1);"\n"==a[0]&&(a=...
^
in function called from system
Uncaught Error: Function "a" not found!
at line 1 col 15
if(void 0===d)a("Timeout");else{if("+CIFSR:STAIP"==d.substr(...
^
in function "b" called from line 1 col 15
d=void 0;b&&b()
^
in function called from system
wifi``` suggests maybe callback is required:
wifi
={
"connect": function (a,b,c) { ... },
"disconnect": function () { ... },
"getIP": function (a) { ... },
....
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks Gordon.