Skip to content

Releases: julienfdev/sim800

v0.4.0

09 Sep 14:47
Compare
Choose a tag to compare

[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 and NetworkStatus 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 called monitorNetworkUntilReady, more semantically correct
  • AtCommand constructor now has an optional timeoutMs parameter

One for the team

03 Sep 10:08
Compare
Choose a tag to compare

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

Production release

02 Sep 21:05
Compare
Choose a tag to compare

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

02 Sep 20:22
Compare
Choose a tag to compare
v0.1.2

0.1.2