Releases: julienfdev/sim800
v0.4.0
[0.4.0] - 2023-09-09
Added
- Error event
The error event is fired asynchronously when a send ends in an error. It allows you to easily implement a watchdog, monitor sms or network failures, etc...
getNetworkStatusmethod andNetworkStatusenum
Fixed
- Bug that occured when high-level method
sendSmswas called while the device has been reset or during initialization
Changed
- (BREAKING)
checkNetworkis now calledmonitorNetworkUntilReady, more semantically correct AtCommandconstructor now has an optionaltimeoutMsparameter
One for the team
Added
- Concurrency for SMS sending : you can now call sendSms asynchronously multiple times, there is a queue system to prevent crosstalk
When called, sendSms will instanciate an Sim800Sms and put it in a queue, then, the function will wait for the Sim800Sms execute method to resolve before sending back the compositeId. sendSms does not execute the method directly, it waits for the queue to handle it, thus preventing crosstalk
this is absolutely mandatory in an API context, where you can have multiple requests sending SMS at the same time. Please note that as AT modems does not support concurrency, only one SMS will actually be sent at the same time, thus increasing the response time of SMSes far down the queue, please use responsibly
noInitoption inSim800ClientConfig, to allow for custom initialization routine implementationresetpublic method, which resets the moduledeleteAllStoredSmspublic method.deliveryDateindelivery-reporteventdateproperty inSim800IncomingSmsinterface
Changed
- The
initroutine now checks if there are SMS to delete before calling the delete-all command, to prevent meaningless errors checkNetworkis now public
Fixed
- Tiny memory leak in command observable subscription
- Tiny memory leak in command observer
- Tiny memory leak in network observable
- A bug with
checkNetworkthat didn't work more than once
Production release
Fixed
- A bug preventing multi part delivery reports from being handled correctly
Removed
- carrierReference for outgoing SMSs
Changed
Sim800ClientRefactoring- Improved
delivery-reportevent interface (breaking)
Initial Release
v0.1.2 0.1.2