Skip to content

Latest commit

 

History

History
120 lines (96 loc) · 2.35 KB

wipCode.md

File metadata and controls

120 lines (96 loc) · 2.35 KB

SIM800L module API

SMS

send SMS ( AT+CMGS="<the_number>" ):

SIM800L.sendSMS(number, message, callback)

send unicode SMS ( AT+CMGS="<the_number>" ):

SIM800L.sendUnicodeSMS(number, message, callback)

receive SMS ( +CMTI: "SM",<total> ):

SIM800L.receiveSMS(callback)

get one/all SMS ( AT+CMGR=<index>, AT+CMGL="ALL"):

SIM800L.getSMS(indexOrFlag)

delete all/one SMS ( AT+CMGD=<index>, AT+CMGDA="DEL ALL" ):

SIM800L.delSMS(indexOrFlag)

Calls

initiate calls ( ATD<number>; ):

SIM800L.placeCall(number, callback)

receive calls ( RING ):

SIM800L.receiveCall(callback)

accept calls ( ATA ):

SIM800L.acceptCall(callback)

know if call ended ( NO CARRIER ):

SIM800L.callEnded(callback)

hangup call ( ATH ):

SIM800L.hangupCall(callback)

reject calls ( AT+GSMBUSY ):

SIM800L.rejectCalls(mode, callback)

use or not buzzer sound for incoming calls ( AT+CBUZZERRING ):

SIM800L.buzzerRing(mode, callback)

General

toggle Net LED ( AT+CNETLIGHT ):

SIM800L.toggleNetLight(mode, callback)

toggle using the Net LED as GPRS status indicator ( AT+CSGS ):

SIM800L.toggleNetLightIndicateGprsStatus(mode, callback)

toggle opening or closing the mike ( AT+CEXTERNTONE ):

SIM800L.toggleMike(mode, callback)

get module name & version ( ATI ):

SIM800L.nameVersion(callback)

turn on verbose errors ( ATI+CMEE=2 ):

SIM800L.verboseErrors(callback)

get SIM card number ( AT+CCID ):

SIM800L.simNum(callback)

check network connection ( AT+COPS? ):

SIM800L.connStat(callback)

check signal strength ( AT+CSQ ):

SIM800L.sigPow(callback)

check battery state ( AT+CBC ):

SIM800L.battPow(callback)

check the codepages supported by the module, for ex IRA,GSM,UCS2,HEX,PCCP,PCDN,8859-1..: ( AT+CSCS=? ):

SIM800L.codePages(callback)

for locked SIM cards, to enter PIN before connecting to a network ( AT+PIN=<pin_code> ):

SIM800L.unlockPin(callback)