Open BorisBrock opened 2 years ago
I had the same problem when I was using UIPEthernet.h, changing to https://www.arduino.cc/reference/en/libraries/ethernetenc/ fixed this issue for me.
I recently updated my broker (Mosquitto) from version 1.6 to 2.14. All my devices continued to work fine, except for my ESP8266 with the pubsubclient library. With the serial monitor I can see that the connect() function returns with error -4.
I have this same problem. How did you fix it?
I recently updated my broker (Mosquitto) from version 1.6 to 2.14. All my devices continued to work fine, except for my ESP8266 with the pubsubclient library. With the serial monitor I can see that the connect() function returns with error -4. Here's my code:
In the Mosquitto log everything looks fine though:
So from the broker's point of view the connection seems to be established just fine. Only the ESP gives me a -4 (timeout?) error. Is there anything I need to change on client or server side to get this working again?