You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • So you've previously done wifi = require("EspruinoWiFi");, or is the wifi variable named something else?

    I tested both and they seem to work on 1v91 - but to be honest there shouldn't be a great deal of difference between that an 1v87 as they'll both be using the same module.

    You need to use wifi.getIP like this:

    wifi.getIP(function(err,d) {
      if (d.ip===undefined || d.ip=="0.0.0.0") print("Not connected");
      else print("Connected");
    });
    
About

Avatar for Gordon @Gordon started