MQTT not working for me?

Recurrent H/W and software problems
Post Reply
peridot
Posts: 46
Joined: Mon Mar 08, 2021 4:54 am
Has thanked: 7 times
Been thanked: 93 times

MQTT not working for me?

Post by peridot »

Can anyone help with this , I am trying to post to a Hive mqtt broker
I have a very simple script to test , it runs and i get all zero suggesting each of the lines complete successfully but I do not get anything written to the broker. :oops:

By the way its a esp32 running 1.49.2

Code: [Local Link Removed for Guests]

wlog mqtt.setup("mqtts://myID.s1.eu.hivemq.cloud")
wlog mqtt.connect("annex", "Annexpi2023")
pause 300
do
wlog mqtt.publish("annex/test2", DATE$ + "-" + TIME$)
pause 5000
loop
if I make a connection to the broker from my same home network using MQTT Explorer it works just fine :D
Image
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 2069
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 441 times
Been thanked: 1364 times
Contact:

Re: MQTT not working for me?

Post by cicciocb »

peridot
Posts: 46
Joined: Mon Mar 08, 2021 4:54 am
Has thanked: 7 times
Been thanked: 93 times

Re: MQTT not working for me?

Post by peridot »

Back on track again, HiveMQ needed the server certificate to work correctly :D
Post Reply