jlab-sensing / soil-power-sensor-firmware

Firmware for STM32 and ESP32 microcontrollers on the Soil Power Sensor board
MIT License
0 stars 3 forks source link

Measurement tolerence while Dirtviz backend failure #68

Open jmadden173 opened 2 months ago

jmadden173 commented 2 months ago

Describe the Enhancement If there is something wrong with the backend or noise causes a bit to be flipped and the data get "send" but is not inserted into the database. Currently the data will be removed from the TX buffer and the data will be lost. Adding a response from Dirtviz back to the soil power sensor can create a check that must return success before the data is removed. If an error is returned the upload is tried again

Benefits Increased reliability -> less data loss due to unforeseen errors

Possible Drawbacks

Additional Context There is the concept of confirmed uplink and downlink messages as part of LoRaWAN. I haven't looked into it but it could be related to what this issue is trying to enhance.