Closed lawrenceleejr closed 1 year ago
I've added some connection handling to the main code
I rewrote the code so that it now only checks connection if posting to the database is unsuccessful.
Nice. Closing the ticket. Do try to reference commit hashes or PRs in your comments.
And report to console what's gone wrong, the state of the network connection, etc etc.
Figure out what the timeout mechanism is for the requests to the DB and when it should retry, etc.
Also have a handling where if you've tried everything and it's been some minutes, reboot the device.