I am not use NodeMCU as server because my connection has changing ip. I am using NodeMCU as client and every two seconds NodeMCU makes get request to my server for checking "should I change relay status?". But sometimes NodeMCU get stucked. The blue led on it always lighting. When I restart it, it works again as expected. For this reason I should detect stuck and restart when it happens. How can I do that? Or do you advise another method?
I am not use NodeMCU as server because my connection has changing ip. I am using NodeMCU as client and every two seconds NodeMCU makes get request to my server for checking "should I change relay status?". But sometimes NodeMCU get stucked. The blue led on it always lighting. When I restart it, it works again as expected. For this reason I should detect stuck and restart when it happens. How can I do that? Or do you advise another method?