sketch code causing wdt reset
Posted: Mon May 18, 2015 6:42 pm
Hello,
I have a case where some code is taking more than 1second ( I think ) to execute, and its causing the wdt to reset.
I remember seeing somewhere some sort of command you can put in to give time back to the WiFi which I guess would reset this wdt, but I cannot find it.
putting a delay(1) solves the problem too, but I dont 100% know why. Im guessing delay is not blocking like in an Arduino, and it gives time back to the system or something and just stops executing the sketch?
Some info would be great
Thanks
I have a case where some code is taking more than 1second ( I think ) to execute, and its causing the wdt to reset.
I remember seeing somewhere some sort of command you can put in to give time back to the WiFi which I guess would reset this wdt, but I cannot find it.
putting a delay(1) solves the problem too, but I dont 100% know why. Im guessing delay is not blocking like in an Arduino, and it gives time back to the system or something and just stops executing the sketch?
Some info would be great
Thanks