• wifi.getIP(function(l,ip){console.log("I­P= ",ip,"\n\r"+l);xIP=ip;});
    

    I don't see this is puzzling: You're logging ip, the parameter - so of course it's going to be right.

    You could always do what you want from the getIP callback itself, rather than using setInterval?

About

Avatar for Gordon @Gordon started