Description
The GSMModem class let you get information about the modem and SIM card (IMEI, firmware version etc.).
To use this class
#include "DICENB.h" GSMModem t_modem;
Syntax
t_modem.begin() – starts the modem (this is only required if not yet started by eg. GSM class etc.)
t_modem.getIMEI() – returns the modems IMEI number
t_modem.getICCID() – returns the SIM cards SIM card – Wikipedia
t_modem.getType() – returns the modems hardware model
t_modem.getFWVersion() – returns the modems firmware version
Parameters
none
Returns
String – all methods return Strings.
Example Code
Also see the example in the Arduino IDE: DICENB -> Tools -> GSMModemInfos
#include "DICENB.h"
GSMModem t_modem;
void setup()
{
while(!Serial);
Serial.println("GSMModem information");
t_modem.begin(); // is only required if no other class puts the modem in operation.
Serial.println("Modem IMEI: " + t_modem.getIMEI());
Serial.println("Modem type: " + t_modem.getType());
Serial.println("Modem firmware: " + t_modem.getFWVersion());
Serial.println("SIM ICCID: " + t_modem.getICCID());
}
void loop()
{ }
Notes and Warnings
Note: In a typical application the DICENB GSM class is used to put the modem into operation GSM.begin().
See also
DICENB GSM