checkReg()

描述

檢查 Arduino GSM shield 是否已在 GSM/GPRS 網路註冊。

語法


pin.checkReg()

參數

無參數

回傳

int:回傳 0 表示 Arduino GSM shield 已註冊上網路,回傳 1 表示 Arduino GSM shield 目前是漫遊的狀態,回傳 -1 表示有錯誤發生

See also

GSMPIN
begin()
isPIN()
checkPIN()
checkPUK()
changePIN()
switchPIN()
getPINUsed()
setPINUsed()


函式庫參考主頁面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.