mycontroller-org / MyControllerDevice

MyController supported MQTT ESP8266 library
http://www.mycontroller.org
Apache License 2.0
4 stars 4 forks source link

Auto discovery only once #4

Closed wengjjpaul closed 7 years ago

wengjjpaul commented 7 years ago

Thanks for implementing Auto discovery of mqtt server using mdns. I tried it, its working good. But i noticed when it finds the mqtt server, it stores the ip. If the server changes ip, it does not rediscover. It keep trying to connect to the old discovered server. Is it possible to make it such that if it is not able to find the old server, do another discovery?

jkandasa commented 7 years ago

@wengjjpaul Can you give a try with recent code?