ThisSmartHouse / CoogleIOT

A ESP8266 Library for easy IOT device development
https://www.thissmarthouse.net/coogleiot/
Other
120 stars 29 forks source link

MQTT subscribtions are cleared on reconnect #15

Open 0x0ACB opened 5 years ago

0x0ACB commented 5 years ago

Currently when CoogleIOT reconnects to the mqtt server it does so with the cleanSession flag set to true. This results in all subscribtions being cleared. As such it would be helpful to either have a callback that gets called after a successful reconnect or having CoogleIOT automatically restore all subscriptions.