You are reading a single comment by @Ollie and its replies. Click here to read the full conversation.
  • Thanks Gordon.

    
    

    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) { ... },
    ....
    

    But this returns null:

    wifi.getIP(function(d){console.log(d);})­
    =undefined
    null
    
About

Avatar for Ollie @Ollie started