So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Tosho Yankov
#88060 Okay, you are right. There is not hanging, because I have ping, but actually they not doing their job.
For exmple 2 with the server on the board - how can I avoid that ?
But in exmple 1 , there is not server. Just one sensor and the controler get the data and send it to MySQL server. Thats mean no server or soething, which i started at the setup.

In general - is there any way to do reboot/reset on each 24 Hours for example. I think this can solve my problem.

Also you ask me to get some errors - how can I do that in case the controler is connected to wifi and power only, but not on serial port ?
User avatar
By pangolin
#88062 1) "not doing their job." tells us very little - what ARE they doing?
2) It is easy to reboot every N seconds / minutes (look at the Ticker library) but this is by far the worst solution. You need code which automatically starts the server when WiFi connects. see https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/generic-examples.html#event-driven-methods
3) You must of course connect the device to a serial port to see any errors. If you can't do this, you won't solve this (or most other) problem(s)