Trying to connect to azure iot hubs with MQTT. I’ve tried the following configuration.
mqtt:
broker: 13.77.53.129 #myhubxx.azure-devices.net
username: myhubxx.azure-devices.net/esphome/?api-version=2021-04-12
password: SharedAccessSignature sig=AXCXXXXh5KdmXXXXXXXXQWI1H%2BR6IJ%2BanJBFAru9JTvlA%3D&se=1661349953
discovery: false
First I tried to connect to broker: myhubxx.azure-devices.net but get the error:
09:45:41 [W] [mqtt:141] Couldn’t resolve IP address for ‘myhubxx.azure-devices.net’!
09:45:41 [W] [mqtt:124] Error resolving MQTT broker IP address: -6
I then tried to ping “myhubxx.azure-devices.net” so i could switch to the IP “13.77.53.129” instead not sure this will work…
Now i get the error:
09:42:50 [W] [mqtt:264] MQTT Disconnected: TCP disconnected. 09:42:50 [I] [mqtt:176] Connecting to MQTT…
Any ideas?