When using the MQTT component of ESP32-S3 to connect to "https://www.emqx.com" using the WebSocket TLS/SSL port 8084, EMQX requires the connection path. However, there is no option for setting the path in the ConnectTo property of the MQTT_Client component. How should I handle this? Greetings!
The connection address for EMQX is:
https://docs.emqx.com/en/cloud/latest/c ... mqttx.html
There is no option for setting the path in the ConnectTo property of the MQTT_Client component.
-
- Posts: 85
- http://meble-kuchenne.info.pl
- Joined: Thu Jan 07, 2021 11:28 am
- Has thanked: 3 times
- Been thanked: 4 times
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: There is no option for setting the path in the ConnectTo property of the MQTT_Client component.
I think this component uses the MQTT / TCP protocol and requires you to use port 1883 or 8883. 8083 and 8084 are the ports used for the WebSocket protocol.
Re: There is no option for setting the path in the ConnectTo property of the MQTT_Client component.
FLOWCODE official, can you provide an example using MQTT_Client to connect to "https://www.emqx.com/" (free version)? I have been trying for a long time with ESP32-S3, but still couldn't establish the connection to "https://www.emqx.com/". I hope FLOWCODE can provide an example. Thank you!
-
- Valued Contributor
- Posts: 1149
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 285 times
- Been thanked: 412 times
Re: There is no option for setting the path in the ConnectTo property of the MQTT_Client component.
Hi
Half way down this link you get connection information
https://www.emqx.com/en/blog/the-easies ... -with-mqtt
Notably :-
Free public MQTT broker
In this post, we will use the free public MQTT broker provided by EMQ, created based on the fully managed MQTT cloud service - EMQX Cloud. The server information is as follows.
Broker Address: broker.emqx.io
TCP Port: 1883
WebSocket Port: 8083
It also gives examples of subscribing and publishing. Have you tried any of them?
Regards
EDIT
Forgot to include this link too
https://www.emqx.com/en/mqtt-guide
Half way down this link you get connection information
https://www.emqx.com/en/blog/the-easies ... -with-mqtt
Notably :-
Free public MQTT broker
In this post, we will use the free public MQTT broker provided by EMQ, created based on the fully managed MQTT cloud service - EMQX Cloud. The server information is as follows.
Broker Address: broker.emqx.io
TCP Port: 1883
WebSocket Port: 8083
It also gives examples of subscribing and publishing. Have you tried any of them?
Regards
EDIT
Forgot to include this link too
https://www.emqx.com/en/mqtt-guide
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: There is no option for setting the path in the ConnectTo property of the MQTT_Client component.
If you are using the MQTT Client component in an embedded device then you need to be using port 1883 (http) or 8883 (https). These are the TCP ports. If you are using Flowcode Web Developer, then you should use the WebSocket ports instead.
You will need to set your username and password to the ones you have set up on that EMQX site if you are using their service. Their free MQTT broker may may not need these credentials.
You will need to set your username and password to the ones you have set up on that EMQX site if you are using their service. Their free MQTT broker may may not need these credentials.