Need clarification on correct pubsubclient (MQTT) usage


hello,
i've been using knolleary pubsubclient (mqtt client) while.  use home automation openhab.  i've had bug client disconnects (somehow) mosquitto mqtt broker seemingly no reason, , doesn't reconnect.  i've had write code around make check periodically , reconnect, doesn't seem should have that.  have feeling i'm not using pubsubclient correctly.

does have bullet proof example of using pubsubclient arduino?  sample code comes library seems same disconnect thing.


here's code mqtt client.
https://github.com/homeautomationyay/openhab-rfm69/blob/master/gateway_ethernet.ino


i'm using part of home automation system this:
http://www.instructables.com/id/uber-home-automation/


i'd appreciate advice.  thank you.





Arduino Forum > Topics > Home Automation and Networked Objects > Need clarification on correct pubsubclient (MQTT) usage


arduino

Comments

Popular posts from this blog

Static ip - Raspberry Pi Forums

arduino bug sur secteur, batterie, mais pas en usb?

What voltage is sent to the arduino GND when a transistor is used