Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't recover automatically from internet disruption #3

Open
SharxRobotics opened this issue Aug 25, 2023 · 1 comment
Open

Doesn't recover automatically from internet disruption #3

SharxRobotics opened this issue Aug 25, 2023 · 1 comment

Comments

@SharxRobotics
Copy link

I left the device connected to the internet and it was uploading to Azure as expected. Initially a little bit too fast, 1 update per second, which would cause problems with the free Azure service having an 8000 messages per day limit. So I increased the upload interval from 1 second to 12 seconds and it was working when I left the office. There was an internet (not Wifi) disruption in the middle of the night, as reported by other devices at the office. When internet was restored 45 min later, all other devices resumed their updates but the AVR-IoT stayed disconnected until I manually unplugged it from USB power and plugged it back in.

I added the red arrow in the screenshot from the Azure IoT hub below to indicate the time that the internet was lost.

image

So the code needs a bit more error resiliency, not just for Wifi disruption but also for the case where the Wifi is solidly connected but when the WAN connection to the Wifi router is disrupted.

@SharxRobotics
Copy link
Author

Looks like it doesn't recover automatically from any sort of error. I activated 3 units on Azure and purposely let them exceed the quota of 8000 messages for the free account. After midnight UTC Azure allows a new quota of 8000 messages, but the AVR-IoT devices stayed stuck in error mode with red light on.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant