Hello everyone.
I have an unusual problem. Well, I have two (bought from different sources) NODEMCU 2.0 boards, or ESP8266, with which I send data to the thingspeak server. Unfortunately, I have noticed that several times a day there are "gaps" in transmission, the ESP does not send data. The LED on the board then lights up (not the LED from the ESP module, but the other LED, which lights up as soon as it is switched on).
I have tried to look for the cause by the method of elimination, here is what I have accomplished so far:
1. Initially, data was being sent from the DS18B20 sensors. I thought a communication error might be short-circuiting the circuit. NO - I removed the parts responsible for the thermometer from the code and gave a simple sum of i=i+1, it still hangs.
2. I thought serial port communication was to blame - unfortunately, disabling it didn't help.
3. Faulty power supply? Two modules powered from two different USB chargers (700mA), doesn't help.
4. A problem with the router? I ran a hot-spot on my mobile phone, didn't help.
The most interesting thing is that WATCHDOG doesn't reset the board - that is, as if it was doing something "meaningful" all the time, but to no avail.
I've included the program code below - I'd appreciate any help or tips on how to investigate the problem further.
I have an unusual problem. Well, I have two (bought from different sources) NODEMCU 2.0 boards, or ESP8266, with which I send data to the thingspeak server. Unfortunately, I have noticed that several times a day there are "gaps" in transmission, the ESP does not send data. The LED on the board then lights up (not the LED from the ESP module, but the other LED, which lights up as soon as it is switched on).
I have tried to look for the cause by the method of elimination, here is what I have accomplished so far:
1. Initially, data was being sent from the DS18B20 sensors. I thought a communication error might be short-circuiting the circuit. NO - I removed the parts responsible for the thermometer from the code and gave a simple sum of i=i+1, it still hangs.
2. I thought serial port communication was to blame - unfortunately, disabling it didn't help.
3. Faulty power supply? Two modules powered from two different USB chargers (700mA), doesn't help.
4. A problem with the router? I ran a hot-spot on my mobile phone, didn't help.
The most interesting thing is that WATCHDOG doesn't reset the board - that is, as if it was doing something "meaningful" all the time, but to no avail.
I've included the program code below - I'd appreciate any help or tips on how to investigate the problem further.
Code: C / C++