I have set up an MQTT broker in HiveMQ (cloud) to monitor some sensoring data. This seems to be working properly, as I can subscribe to the topic with mosquitto-cli and view the output. For me, the next step is to get the data into influxdb. For ease of use, I tried using the cloud 2.0 native subscriptions. I’m using the hostname & port provided by HiveMQ and the basic security details, yet I’m always getting the following error: Failed to connect to a broker using tcp://7eb5f761d991436fb09d6dcaaexxxxxx.s2.eu.hivemq.cloud:8883 and the credentials provided
I think I more or less know what the issue is: I’ve managed to set up Telegraf, but ran into a similar issue.
The issue with Telegraf was that I was using the tcp protocol instead of ssl. I reverted to a free account so I can’t test native subscriptions anymore, but maybe I should have added ‘ssl://‘ explicitly to the hostname? It seemed to default to tcp when I didn’t.