knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.82k stars 1.47k forks source link

PububClient connects every few seconds new to MQTT Server #582

Open Locus43 opened 5 years ago

Locus43 commented 5 years ago

I have following Problem with PubSubClient. Every few seconds the device (Sonoff with ESP8285) connects new to the MQTT Server. In the serial console it says "Connecting to Server...connected" without any timeout. After a few more minutes it says without any timeout: "Connecting to server...connection error, Trying again. Connecting to server...connected.". The MQTT server log is not very helpful. The only thing it says is: Socket error on client , disconnecting. Can anybody help me?

pablopescador commented 5 years ago

idem

JacoFourie commented 5 years ago

Use the 2.3.0 core. The new core has issues.

https://github.com/arendst/Sonoff-Tasmota/issues/5356

njordan77 commented 5 years ago

Hi, i have the same issue with Core 2.5...connecting to CloudMQTT which worked some time ago quite good. but now i only see the "trying to connect....connected" all the time...so its looping but nothing else happens, no messages arrive.....

btw. i'm using NodeMCU, so no relation to Tasmoto...simple esp8266_mqtt sketch...no SSL