The Purpose of This library is to use the module in the most easy way and transparent.
Website: Sim800l library
Go to Releases click the " Source
- Support SoftwareSerial and HardwareSerial
Name | Return | Notes |
---|---|---|
begin(Stream &serial) | None | Initialize the library |
reset() | None | Reset the module,and wait to Sms Ready. |
sendSms(number,text) | true or false | parameters must be Strings. |
readSms(index) | String | index is the position of the sms in the prefered memory storage |
getNumberSms(index) | String | returns the number of the sms. |
delAllSms() | true or false | Delete all sms |
answerCall() | true or false | |
callNumber(number) | None | |
hangoffCall() | true or false | |
getCallStatus() | uint8_t | Return the call status, 0=ready,2=Unknown(),3=Ringing,4=Call in progress |
setPhoneFunctionality() | None | Set at to full functionality |
activateBearerProfile() | None | |
deactivateBearerProfile() | None | |
RTCtime(int *day,int *month, int *year,int *hour,int *minute, int *second) | None | Parameters must be reference ex: &day |
dateNet() | String | Return date time GSM |
updateRtc(utc) | true or false | Return if the rtc was update with date time GSM. |
You can regulate the voltage to the desired with this, is not the best, but for start it's easy.
For the reset pin they need NPN transistor, this is an example circuit that you can use.