Reset cause 4 is a wdt reset. So something in your program is stuck.
Most likely there's an error in your ESP code - and it's almost certainly in the parts you didn't post.
Reset cause 4 is a wdt reset. So something in your program is stuck.
Most likely there's an error in your ESP code - and it's almost certainly in the parts you didn't post.