caidavies:
HiI'm using an Arduino Mega, with an Arduino Ethernet shield, to recieve messages via a self hosted MQTT broker(http://mqtt.org).
...The problem I'm facing is - the Arduino sometimes hangs and doesn't connect after a while. It usually displays a strange character on the Serial Monitor, usually 'Ð'.
I was wondering what this might be, and what I might do to isolate the bug, or rectify it?
Many thanks
Hey,
Might the problem be your "client.connect" always returning false? I'm doing a similar thing, using the pubsubclient.h library. I haven't been able to figure out why "client.connect" returns false for very long periods of time.