Skip to content

GSM3ShieldV1AccessProvider

詳細情報

メンバー

GSM3ShieldV1AccessProvider()

GSM3ShieldV1AccessProvider::GSM3ShieldV1AccessProvider(bool debug=false)

引数

  • bool debug Determines debug mode

begin()

GSM3_NetworkStatus_t GSM3ShieldV1AccessProvider::begin(char *pin=0, bool restart=true, bool synchronous=true)

引数

  • char * pin SIM PIN number (4 digits in a string, example: "1234"). If NULL the SIM has no configured PIN.
  • bool restart Restart the modem. Default is TRUE. The modem receives a signal through the Ctrl/D7 pin. If it is shut down, it will start-up. If it is running, it will restart. Takes up to 10 seconds
  • bool synchronous If TRUE the call only returns after the Start is complete or fails. If FALSE the call will return inmediately. You have to call repeatedly until you get a result. Default is TRUE.

戻り値

GSM3_NetworkStatus_t If synchronous, GSM3_NetworkStatus_t. If asynchronous, returns 0.

isAccessAlive()

Check network access status

int GSM3ShieldV1AccessProvider::isAccessAlive()

戻り値

int 1 if Alive, 0 if down

shutdown()

Shutdown the modem (power off really)

bool GSM3ShieldV1AccessProvider::shutdown()

戻り値

bool true if successful

secureShutdown()

Secure shutdown the modem (power off really)

bool GSM3ShieldV1AccessProvider::secureShutdown()

戻り値

bool true if successful

ready()

Returns 0 if last command is still executing

int GSM3ShieldV1AccessProvider::ready()

戻り値

int 1 if success, >1 if error

getStatus()

Returns modem status

GSM3_NetworkStatus_t GSM3ShieldV1AccessProvider::getStatus()

戻り値

GSM3_NetworkStatus_t modem network status

manageResponse()

void GSM3ShieldV1AccessProvider::manageResponse(byte from, byte to)

引数

  • byte from Initial byte of buffer
  • byte to Final byte of buffer

HWrestart()

Restart the modem (will shut down if running)

int GSM3ShieldV1AccessProvider::HWrestart()

戻り値

int 1 if success, >1 if error

HWstart()

Start the modem (will not shut down if running)

int GSM3ShieldV1AccessProvider::HWstart()

戻り値

int 1 if success, >1 if error