Open lunanigra opened 7 years ago
Hi, sorry late response. How long do you think it survive before crash? I never test it out long enough
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'm available to hire for professional work, though.
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. I think, if you don't need the timestamp, you can remove NTP integration.
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; 0
instead of now()
and it seems to work fine
A while everything worked fine; then suddenly a crash.
Is there a chance for identifying the cause? Or trigger a reboot?