[SOLVED] MQTT subscriber doesn't work


#1

Hello,

I am using MQTT (ssl) to subscribe to one of the variables and try to use the Slider widget to change the value of this variable.But I can not make the messageArrived() callback work.

Does anybody know the reason? Or can anybody provide any tutorial about this?


#2

Greetings, make sure that you are using industrial.api.ubidots.com as broker url. This example may serve you as reference to connect to the broker.

All the best


#3

My account is STEM, so I use things.ubidots.com as broker url. I think I can connect to the broker successfully because my publisher works well. But for subscriber, it still can not work.


#4

Hi there, STEM users must use the industrial endpoint instead of the educational one, this is one of the advantages of using STEM instead of educational, you have available a higher availability endpoint to retrieve/send data.

All the best


#5

Yes, it works! Thank you so much!