|
@ -33,11 +33,13 @@ void loop() { |
|
|
modem.factoryDefault(); |
|
|
modem.factoryDefault(); |
|
|
|
|
|
|
|
|
// Test the SIM card functions
|
|
|
// Test the SIM card functions
|
|
|
|
|
|
#if defined(TINY_GSM_MODEM_SIM800) || defined(TINY_GSM_MODEM_A6) || defined(TINY_GSM_MODEM_M590) || defined(TINY_GSM_MODEM_XBEE)
|
|
|
modem.getSimCCID(); |
|
|
modem.getSimCCID(); |
|
|
modem.getIMEI(); |
|
|
modem.getIMEI(); |
|
|
modem.getSimStatus(); |
|
|
modem.getSimStatus(); |
|
|
modem.getRegistrationStatus(); |
|
|
modem.getRegistrationStatus(); |
|
|
modem.getOperator(); |
|
|
modem.getOperator(); |
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Test the Networking functions
|
|
|
// Test the Networking functions
|
|
@ -72,6 +74,6 @@ void loop() { |
|
|
#if defined(TINY_GSM_MODEM_SIM800) || defined(TINY_GSM_MODEM_A6) || defined(TINY_GSM_MODEM_M590)
|
|
|
#if defined(TINY_GSM_MODEM_SIM800) || defined(TINY_GSM_MODEM_A6) || defined(TINY_GSM_MODEM_M590)
|
|
|
modem.gprsDisconnect(); |
|
|
modem.gprsDisconnect(); |
|
|
#else
|
|
|
#else
|
|
|
networkDisconnect() |
|
|
|
|
|
|
|
|
modem.networkDisconnect() |
|
|
#endif
|
|
|
#endif
|
|
|
} |
|
|
} |