-
Notifications
You must be signed in to change notification settings - Fork 17
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
ESP8266 crashes after sending to Azure for a while #3
Comments
Hi, sorry late response. How long do you think it survive before crash? |
Hi, in this case the crash came just after a couple of minutes. In other cases it run for hours. Currently we do some tests. As we want to put the ESP directly into a wall it should run stable. Otherwise we have to add a reset button somewhere. |
@lunanigra thanks for reporting. Let's see if I can find time to investigate it further and fix it. I suspect it has something to do with NTP request. Looking at your log, there are some NTP requests, that normally should be once. When more than once, it will trigger another actions again. |
Ok, I guess it is difficult to identify the root cause. Will keep you updated if I can find any further details. |
@andriyadi What is the NTP sync even for? |
@andriyadi I've been testing with removing the NTP stuff, it works perfectly fine and is way less complicated & crashy.. why include it? |
@onionhammer good question. During my exploration of Azure IoT Hub and subsequent services (Stream Analytics, etc), I need to publish timestamp field from the ESP8266. In my example, I wrote "EventTime". As we know, since there's no way to track time without using RTC, I get the current time first from NTP. |
Unless you're queueing up events while the device is offline or something its probably going to be better to rely on the cloud's timestamp anyway |
I just remember that the valid timestamp is used for calculating token expire (this line). Unless you have a better idea. |
@andriyadi shrug I just went with the false branch there; |
A while everything worked fine; then suddenly a crash.
Is there a chance for identifying the cause? Or trigger a reboot?
The text was updated successfully, but these errors were encountered: