Open pedroetb opened 3 years ago
Hello, I'm having the same issue Did you find a solution ?
Hi, not yet, but a delay of 1000ms after the publish inside the callback is my workaround. It's not a solution, because I need to avoid using delays.
I changed the callback function as follows:
void callback(char *topic, byte *payload, unsigned int length){
delay(1000);
Serial.println("new msg received ");
}
But the problem was not solved and I did not receive the message
I was talking about publishing a MQTT message from the callback function:
void callback(char *topic, byte *payload, unsigned int length){
Serial.println("new msg received ");
delay(1000);
mqttClient.publish(...);
}
If you don't reach the callback function, your are stuck on a different point.
I'm using ESP8266WiFi.h lib instead of Ethernet.h, and input message are never published at output topic.
Using local mosquitto broker, successfully receives
hello world
(so it's working), but nothing else.Can't find anything in previous issues, it's is a known bug?
Here, the modified example: