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...
getNetworkStatus
method andNetworkStatus
enum
Fixed
- Bug that occured when high-level method
sendSms
was called while the device has been reset or during initialization
Changed
- (BREAKING)
checkNetwork
is now calledmonitorNetworkUntilReady
, more semantically correct AtCommand
constructor now has an optionaltimeoutMs
parameter
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
noInit
option inSim800ClientConfig
, to allow for custom initialization routine implementationreset
public method, which resets the moduledeleteAllStoredSms
public method.deliveryDate
indelivery-report
eventdate
property inSim800IncomingSms
interface
Changed
- The
init
routine now checks if there are SMS to delete before calling the delete-all command, to prevent meaningless errors checkNetwork
is 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
checkNetwork
that 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
Sim800Client
Refactoring- Improved
delivery-report
event interface (breaking)
Initial Release
v0.1.2 0.1.2