martin-ger / uMQTTBroker

MQTT Broker library for ESP8266 Arduino
MIT License
443 stars 105 forks source link

disconnect and reconnect 6-10 time,the broker will cant't be connected #58

Open 1003657663 opened 3 years ago

1003657663 commented 3 years ago

The client and broker is two 8266 board; void MyMQTTBroker::onDisconnect(IPAddress addr, String client_id) { cleanupClientConnections(); Serial.println(addr.toString() + " disconnectin"); }

The cleanupClientConnections has call;

buitre-buitaker commented 2 years ago

Same problem here. It is related to lwip version.

Downgrade esp8266 core to latest 2.X on Arduino IDE and select lwip 1.4 in the board menu.

Good luck!