Skip to content

One for the team

Choose a tag to compare

@julienfdev julienfdev released this 03 Sep 10:08
· 4 commits to main since this release

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 in Sim800ClientConfig, to allow for custom initialization routine implementation
  • reset public method, which resets the module
  • deleteAllStoredSms public method.
  • deliveryDate in delivery-report event
  • date property in Sim800IncomingSms 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