homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 308 forks source link

Connection to HiveMQ Cloud not working #739

Open matdon opened 1 year ago

matdon commented 1 year ago

Hi everyone,

has somebody here experience with the HiveMQ Cloud broker? (https://www.hivemq.com/mqtt-cloud-broker/) Its a nice and free (up to 100 devices) online MQTT broker.

Attempting to connect to the broker fails:

grafik

No MQTT connection can be established.

As code I'm using the bare minimum sketch from the documentation:

`#include

void setup() { Serial.begin(115200); Serial << endl << endl;

Homie_setFirmware("bare-minimum", "1.0.0"); // The underscore is not a typo! See Magic bytes Homie.setup(); }

void loop() { Homie.loop(); }`

I'm using PlatformIO. Already tried with the Homie 3.0.1 release as well as the latest revision from the develop branch.

Here is the JSON config I'm using: grafik

The platformio.ini looks a follows:

grafik

HiveMQ requires a SSL/TLS connection at port 8883.

Was somebody able to establish a connection to a HiveMQ Cloud broker and can provide some hints?

Thank you in advance!

Best regrads, Matthias