setBand()
描述
設定連線使用的頻段。在這個網頁裡有 GSM 頻段的資訊,以下為典型的區域設定:
-歐洲、非洲、中東:E-GSM(900)+DCS(1800)
-美國、加拿大、南美洲:GSM(850)+PCS(1900)
-墨西哥:PCS(1900)
-巴西:GSM(850)+E-GSM(900)+DCS(1800)+PCS(1900)
語法
band.setBand(type)
參數
type
:要使用的頻段名稱
-GSM_MODE_UNDEFINED
-GSM_MODE_EGSM
-GSM_MODE_DCS
-GSM_MODE_PCS
-GSM_MODE_EGSM_DCS
-GSM_MODE_GSM850_PCS
-GSM_MODE_GSM850_EGSM_DCS_PCS
回傳
boolean
:如果設定成功回傳 true
,反之回傳 false
See also
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.