What does gsmAccess() function do (GSM.h and Arduino)

I have a module which connects and sends ussd through arduino+GSM shield. I am kind of fuzzy on the following two commands which are commented with ??. (line 4 and line 7).

Can someone explain what these two do?

And plus gsmAccess.getStatus() == 3; what are the other values that this function can return apart from 3?

#include <GSM.h>
#include <GSM3ShieldV1DirectModemProvider.h>
GSM3ShieldV1DirectModemProvider modemAccess;
GSM gsmAccess(true);                           // ??

void sendCommand(String com){                 // com is "AT+CUSD=1,\"#366#\",\0"
  if(gsmAccess.getStatus() == 3)              // ??
    Serial.println(modemAccess.writeModemCommand(com,comDelay));
  else{
    connectModule();
    sendCommand(com);
  }
}


Download what.does.gsmaccess.function.do.gsm.h.and.arduino.zip
Direct Link


Download


Download what.does.gsmaccess.function.do.gsm.h.and.arduino.zip
Mediafire


Download


Download what.does.gsmaccess.function.do.gsm.h.and.arduino.zip
Thefile


Download

Both comments and pings are currently closed.

Comments are closed.