So I decided to use HiveMQ to connect mobile and ESP32-S3. There're 3 urls (URL, TLS MQTT URL, TLS Websocket URL) that I can use but I don't know which one I should put on broker section. I actually tested it yesterday but it didn't work. Can someone explain how it works?
I want to make it connect automatically when I initialize the screen. It'd be helpful if you tell if this structure is okay or needs more details.
how did you setup the broker, port, user name, password?
in designer view? or with blocks?
And after Connect function, you need to check if it's connected in the connectiongstatechange event.
Thanks for reply! Ullis Roboter Seite/AI2 MQTT
I just checked setting up the client from that site
Broker = TLS MQTT URL
port = 8883
Protocol = TLS
Except these things, everything was optional so I didn't setup in designer view.
how did you do that?
This is what I did with another broker, it's working:
Let me try your suggestion. Give me a min
I don't know why but it seems the connection isn't working rn.
It should change the text but it doesn't.
In designer tab, I can setup the broker, port and other things.
i can not figure out how you set the params.
what about leave all as default in designer view, and use blocks to set the properties?
I did but it's still not working ;-; Thank you for helping btw
show us your blocks.
did you got any error message? there is an on error event. use it to check any error.
There was no error message.
set it to a label, not to itself
Oh.. Now it shows the message. It says "Invalid state"
Connection problem with UrsPahoMqttClient1
I am developing an application to communicate with an ESP32-S3, aiming to control specific LEDs on a 32x32 matrix. The application will send data including color, X coordinate, and Y coordinate to illuminate the target LED. However, I consistently encounter a "ConnectionAborted" error when attempting to connect to the broker. As the hardware is still under development and not yet complete, I am seeking professional advice on how to address this issue.