Closed itsosmx closed 6 months ago
I cannot help you to debug or find the cause of your problem.
The Exception was unhandled
error is because of dangling pointer issue as you are trying to use the object that point by the pointer that was destroyed or not existed.
The memory allocation failure due to out of memory can cause the dangling pointer as the pointer is still point to unallocated memory.
And it should be note that when you define class object, variable and calling the function inside the callback function, they use stack memory.
Then you should avoid the stack overflow problem by moving all codes in the callback to run in the main loop function instead.
Serial printing in the callback function also use stack and you should remove from production.
Anyway, you should take care of memory usage (heap) and memory leaks too which all can cause wdt reset crash.
The data under the stream path should also keep small as possible.
Hello, Yesterday I was working on my system and everything was working properly. Today, for some reason everything is broken. After doing a lot of searching everywhere and removing a lot of the features I added Yesterday that were working without any problem, I found that the problem is in the stream callback, If I modify anything in the database, the esp32... Reboot, and if I don't do anything, this message is printed in the console
the error when updating anything
code setup func
callback for switch