matthias-bs / BresserWeatherSensorTTN

Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver based on ESP32 and RFM95W/SX1276 - sends data to a LoRaWAN Network (e.g. The Things Network)
MIT License
22 stars 9 forks source link

Implement wake-up to fixed time scheme #14

Closed matthias-bs closed 1 year ago

matthias-bs commented 1 year ago

For a receiving endpoint (e.g. MQTT client), it would be beneficial if the transmission would follow a predictable schedule. This would reduce uptime waiting for an incoming message. Since the sensor RF message reception and LoRaWAN join/rejoin/transmit time varies, the sleep time would have to be adjusted for each cycle to provide wake-up at fixed intervals with respect to the full hour.

matthias-bs commented 1 year ago

Implemented in https://github.com/matthias-bs/BresserWeatherSensorTTN/commit/be99377dd7e4b7ecd4eccaa4e7e133f28253a50d