You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I'm not sure the module itself contains a method, but if you know the AT command you send it's easy enough to add one - the code itself is in https://www.espruino.com/modules/SIM900.­js

    For example:

    // there is already a getVersion function, but you can see how you might change it
    gprs.getVersion = function(callback) {
        this.at.cmd("AT+GMR\r\n", 1000, function(d) {
          callback(null,d);
        });
      },
    

    If you don't want to/can't change it, does getIP not work? I guess if there is no connection you won't have an IP?

About

Avatar for Gordon @Gordon started