Open luebbe opened 6 years ago
And now something weird. When I change loop to print a dot every second, the firmware doesn't crash. (At least it didn't in ten tries). When I comment the "dotty" part out, it crashes again at least once within 20 seconds.
void loop()
{
Homie.loop();
unsigned long ms = millis();
if (ms - lastdot >= 1000UL || lastdot == 0)
{
Homie.getLogger() << ".";
lastdot = ms;
}
}
OK, now it crashed once in 20 tries, but without the dots it crashes every time.
Hi Folks,
I'm trying to get a H801 up and running with Homie. Using the follwing minimal firmware with current homie developer branch, Homie usually crashes once or twice within the first 20 seconds after a reboot.
Once the firmware "survives" the first 60 seconds, it runs stable from then on. I think it must be an initialization problem, but I have no idea how to track it down.
The typical log output looks like this:
my platformio.ini:
This doesn't happen with the same sketch on a D1 mini or an ESP12F. The only difference is serial vs. serial1 and that I call 'Homie.disableLedFeedback()' on the other devices.
Any pointers are greatly appreciated. I can try to backtrack if this doesn't happen with older revisions of Homie.