openeew / openeew-sensor

Hardware for an OpenEEW sensor
https://openeew.com/docs/build-sensor
Apache License 2.0
43 stars 12 forks source link

Listen on a MQTT topic ForceFirmwareCheck #56

Closed johnwalicki closed 3 years ago

johnwalicki commented 3 years ago

If a device is running for many months it might fall behind on the version of the firmware it is running. As part of the ESP32 power up / activation process, the board does a firmware version check. If there is a newer firmware version it initiates an OTA firmware update. That only happens on startup. A board that has been running for a long time might be stranded on old version.

The sensor could handle this in several ways:

It would be easy to implement, the board already subscribes to other MQTT topics and the callback could be extended with another use case. The callback would just need to invoke OpenEEWDeviceActivation() function.

johnwalicki commented 3 years ago

This feature has been implemented in the pending firmware v1.3.0 release

johnwalicki commented 3 years ago

Firmware v1.3.0 has been published This Issue has been closed via https://github.com/openeew/openeew-sensor/pull/61