alrapal / Greeny

IoT project for plant and environment monitoring
MIT License
0 stars 0 forks source link

Fix Message not received with long delay #17

Closed alrapal closed 1 year ago

alrapal commented 1 year ago

Description:

Set QOS at 1 so that if message not sent, reset board with exception handling Delay at 30 minutes instead of 15 Added unique id to mqtt user

Details

It seems that when trying to send the message after 15 minutes, the broker does not receive it. We set QOS to 1 to wait for an answer from the broker. This seems to trigger a reset of the board via exception (needs to be confirmed). The reset recreates the connections and send the value. If this fixes the issue, there is still something to investigate on what happens when sending the message after 15 minutes.

Screenshots

Data received for ambient humidity

Screenshot 2023-06-30 at 11 27 56

Connection ping received

Screenshot 2023-06-30 at 11 28 09

fix #16