Open Pippetta87 opened 2 years ago
Check esp.getfreeheap() and i think this is wrong: client.publish("telemetry","!(Hour<=WATERING_HOUR+WATERING_HOUR_range&&Hour>=WATERING_HOUR-WATERING_HOUR_range) false"); <== I thing this is wrong
client.publish("telemetry",!(Hour<=WATERING_HOUR+WATERING_HOUR_range&&Hour>=WATERING_HOUR-WATERING_HOUR_range),false); <=== thats correct and actually you should make function for this and you should do it lik e
bool result = false;
String myFunc(bool){ if(Hour<=WATERING_HOUR+WATERING_HOUR_range&&Hour>=WATERING_HOUR-WATERING_HOUR_range){
return result }
void loop(){ myFunc(); client.send(TOPIC, result ); }
client.publish("/Topic",)
Hi, my esp-wroom-32 had begun showing misbehaviour when printing payload received on a topic to serial console: inside my callback function the code that give rise to problem is
and the output on the console is
where the expected output is
the "y" after the "0" seems to come from "telemetry", the string that define the topic to which I'm publishing inside callback.
The full code is
and the serial output related to my problem is:
Thanks for attention.