dreed47 / WifiMQTTManager

ESP32/ESP8266 library for managing your IoT devices.
GNU General Public License v3.0
82 stars 33 forks source link

There is a strange problem when it ran to Serial.println(messageBuffer); #25

Open blacke97 opened 2 years ago

blacke97 commented 2 years ago

I write the example sketch to my ESP8266 board, Then it reboot all the time. I found that there is a strange problem when it ran to Serial.println(messageBuffer); I comment it, and it works normally. I am not good at c++, so I haven't found the specific problem yet. And I'm not sure if sketch is the problem.

konacurrents commented 2 years ago

The main problem I find when the board reboots is that theSerial.printtries to print null strings. In that case I've used the C conditional inline if like: Serial.println(messageBuffer?messageBuffer:"NULL")