AnsweredAssumed Answered

SPWF04SC MQTT Connection problem

Question asked by tsaligopoulos.gavrii on Apr 27, 2017
Latest reply on Aug 3, 2017 by panduro.soeren.002

SPWF04SC

MQTT Unable to connect to any MQTT Server

 

According

http://www.st.com/content/ccc/resource/technical/document/user_manual/group0/69/bf/26/08/53/62/49/af/DM00329655/files/DM… 

 

UM2114 User manual

In Section 6.54

 

AT+S.MQTTCONN=test.mosquitto.org,,,,,,,,,,,

AT-S.ERROR:111:Request failed
+WIND:87:MQTT Closed:0:0
+WIND:87:MQTT Closed:0:0

 

I have also test other mqtt server broker.hivemq.com

AT+S.MQTTCONN=broker.hivemq.com,,,,,,,,,,,

AT-S.ERROR:111:Request failed
+WIND:87:MQTT Closed:0:0
+WIND:87:MQTT Closed:0:0

 

The module have internet connection

AT+S.PING=5,,test.mosquitto.org
AT-S.Start:37.187.106.16
AT-S.Reply:56:111
AT-S.Reply:56:111
AT-S.Reply:56:111
AT-S.Reply:56:111
AT-S.Reply:56:112
AT-S.Stop:0:111
AT-S.OK

 

And i have test successfully the insecure and secure connection with computer software client MQTT.fx on port 1883 on both servers

broker.hivemq.com

test.mosquitto.org

I have test also with ips instead of hostname

35.157.21.220

37.187.106.16

 

AT+S.MQTTCONN=35.157.21.220,,,,,,,,,,,

AT-S.ERROR:111:Request failed
+WIND:87:MQTT Closed:0:0
+WIND:87:MQTT Closed:0:0

 

I have also test a full set of options both with dns name and ip

AT+S.MQTTCONN=35.157.21.220,1883,/,0,,,testId,60,15,0,/home/1,test
AT-S.ERROR:111:Request failed
+WIND:87:MQTT Closed:0:0
+WIND:87:MQTT Closed:0:0

 

 

I have also successfully connect with other module esp8266 and esp32  secure with TLS @ port 8883 and insecure

on both servers above.

 

Would you please provide some help ..

 

Thanks in advance.

Outcomes