Skip to content

GSM3ShieldV1PinManagement

詳細情報

メンバー

GSM3ShieldV1PinManagement()

Constructor

GSM3ShieldV1PinManagement::GSM3ShieldV1PinManagement()

begin()

Check modem response and restart it

void GSM3ShieldV1PinManagement::begin()

isPIN()

Check if PIN lock or PUK lock is activated

int GSM3ShieldV1PinManagement::isPIN()

戻り値

int 0 if PIN lock is off, 1 if PIN lock is on, -1 if PUK lock is on, -2 if error exists

checkPIN()

int GSM3ShieldV1PinManagement::checkPIN(String pin)

引数

  • String pin PIN code

戻り値

int 0 if is correct, -1 if is incorrect

checkPUK()

int GSM3ShieldV1PinManagement::checkPUK(String puk, String pin)

引数

  • String puk PUK code
  • String pin New PIN code

戻り値

int 0 if successful, otherwise return -1

changePIN()

void GSM3ShieldV1PinManagement::changePIN(String old, String pin)

引数

  • String old Old PIN code
  • String pin New PIN code

switchPIN()

void GSM3ShieldV1PinManagement::switchPIN(String pin)

引数

  • String pin PIN code

checkReg()

Check if modem was registered in GSM/GPRS network

int GSM3ShieldV1PinManagement::checkReg()

戻り値

int 0 if modem was registered, 1 if modem was registered in roaming, -1 if error exists

getPINUsed()

Return if PIN lock is used

bool GSM3ShieldV1PinManagement::getPINUsed()

戻り値

bool true if PIN lock is used, otherwise, return false

setPINUsed()

void GSM3ShieldV1PinManagement::setPINUsed(bool used)

引数

  • bool used New PIN lock status