Cannot establish MQTT Connection
Posted: Mon Aug 15, 2022 6:31 pm
Hello there folks,
i am currently trying to connect a ESP-WROOM-02D to a local MQTT Broker on my personal computer.
The wifi connection is successful, but I can not establish a MQTT Connection.
Here is a little snapshot of the messages I recieved via uart.
AT+RST<\r><\n>
<\r><\n>
OK<\r><\n>
WIFI DISCONNECT<\r><\n>
<\0><\0><\r><\n>
ready<\r><\n>
WIFI CONNECTED<\r><\n>
WIFI GOT IP<\r><\n>
AT+GMR<\r><\n>
AT version:2.2.1.0(46d6c26 - ESP8266 - Aug 6 2021 06:50:15)<\r><\n>
SDK version:v3.4-37-gd92d00e<\r><\n>
compile time(ede72af):Aug 6 2021 12:28:15<\r><\n>
Bin version:2.2.1(WROOM-02)<\r><\n>
<\r><\n>
OK<\r><\n>
AT+MQTTCONN=0,"192.168.188.20",1883,0<\r><\n>
<\r><\n>
ERROR<\r><\n>
<\0>
If I run the "AT+MQTTCONN?" command, I get the following response:
+MQTTCONN:0,0,0,"","","",0<\r><\n>
<\r><\n>
OK<\r><\n>
I also tried the Example 3 of the ESP-AT User Guide, but gt the same error.
I successfully used the following command for the Userconfig.
AT+MQTTUSERCFG=0,1,"ESP32","espressif","1234567890",0,0,"wss"
Could anybody please give me a hint or solution. Thank you very much!
Greetings
Lars
i am currently trying to connect a ESP-WROOM-02D to a local MQTT Broker on my personal computer.
The wifi connection is successful, but I can not establish a MQTT Connection.
Here is a little snapshot of the messages I recieved via uart.
AT+RST<\r><\n>
<\r><\n>
OK<\r><\n>
WIFI DISCONNECT<\r><\n>
<\0><\0><\r><\n>
ready<\r><\n>
WIFI CONNECTED<\r><\n>
WIFI GOT IP<\r><\n>
AT+GMR<\r><\n>
AT version:2.2.1.0(46d6c26 - ESP8266 - Aug 6 2021 06:50:15)<\r><\n>
SDK version:v3.4-37-gd92d00e<\r><\n>
compile time(ede72af):Aug 6 2021 12:28:15<\r><\n>
Bin version:2.2.1(WROOM-02)<\r><\n>
<\r><\n>
OK<\r><\n>
AT+MQTTCONN=0,"192.168.188.20",1883,0<\r><\n>
<\r><\n>
ERROR<\r><\n>
<\0>
If I run the "AT+MQTTCONN?" command, I get the following response:
+MQTTCONN:0,0,0,"","","",0<\r><\n>
<\r><\n>
OK<\r><\n>
I also tried the Example 3 of the ESP-AT User Guide, but gt the same error.
I successfully used the following command for the Userconfig.
AT+MQTTUSERCFG=0,1,"ESP32","espressif","1234567890",0,0,"wss"
Could anybody please give me a hint or solution. Thank you very much!
Greetings
Lars