knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.82k stars 1.47k forks source link

Unable to connect to test.mosquitto.org #273

Open chessweb01 opened 7 years ago

chessweb01 commented 7 years ago

I'm testing the library with various public MQTT brokers. While there is no problem with broker.hivemq.com, the client won't connect to test.mosquitto.org. The error is rc=-4 (MQTT_CONNECTION_TIMEOUT).

knolleary commented 7 years ago

Works fine for me. With no other information, I'm not sure what youre looking for?

chessweb01 commented 7 years ago

Well, I'm simply running the example mqtt_esp8266.ino and it works just fine with the HiveMQ broker (broker.mqtt-dashboard.com, broker.hivemq.org), but not with the Mosquitto broker (test.mosquitto.org). The client is unable to connect to test.mosquitto.org with the error MQTT_CONNECTION_TIMEOUT.