Hi guys !
I can't connect to MQTT broker. What am I doing wrong ?
MQTT_connect
-
- Posts: 56
- http://meble-kuchenne.info.pl
- Joined: Thu Aug 19, 2021 1:14 pm
- Has thanked: 2 times
- Been thanked: 1 time
-
- Matrix Staff
- Posts: 1882
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 484 times
- Been thanked: 661 times
Re: MQTT_connect
Hello,
The Host URL is longer than 50 characters, maybe try upping the MQTT Client - Host Max Length property to 100?
Also is the username and password of "test" correct?
Finally port 8883 is for encrypted communications which Flowcode doesn't currently support, might be better to try port 1883 which is the unencrypted version.
The Host URL is longer than 50 characters, maybe try upping the MQTT Client - Host Max Length property to 100?
Also is the username and password of "test" correct?
Finally port 8883 is for encrypted communications which Flowcode doesn't currently support, might be better to try port 1883 which is the unencrypted version.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1882
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 484 times
- Been thanked: 661 times
Re: MQTT_connect
Hello,
The MQTT component should be connected to a Network comms component, which then connects to the WLAN ESP component. This could be what's causing your problems. The icons should match up.
If you don't have a username and password maybe try setting Authentication to none.
Some examples here if you're still having problems with publishing and subscribing.
https://www.flowcode.co.uk/wiki/index.p ... IoT/Cloud)
https://www.youtube.com/watch?v=5NFsJTPZKH8
Might also be worth trying to connect via a MQTT app on your phone and see if that can connect ok. Might help you to troubleshoot the various settings.
The MQTT component should be connected to a Network comms component, which then connects to the WLAN ESP component. This could be what's causing your problems. The icons should match up.
If you don't have a username and password maybe try setting Authentication to none.
Some examples here if you're still having problems with publishing and subscribing.
https://www.flowcode.co.uk/wiki/index.p ... IoT/Cloud)
https://www.youtube.com/watch?v=5NFsJTPZKH8
Might also be worth trying to connect via a MQTT app on your phone and see if that can connect ok. Might help you to troubleshoot the various settings.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: MQTT_connect
Hi Ben,
Could you please expain how to change the max length of the IOT component for more characters?
mine looks like this "pub-c-6a38f739-6472-425a-a522-e5ec55e3e06a/sub-c-2a445fc0-405d-11ac-b2c1-a25c7fcd9558/Client1"
Thanks in advance
George!