Need Help with EC200U MQTT Connection Issue

Hello everyone,

I’m currently working on setting up an MQTT connection using the EC200 module. I’ve been following the documentation and guides, but I’m facing issues with establishing a successful connection to my MQTT broker.

Issue: I’m encountering the following problems:

  1. The MQTT connection fails with the “ERROR” response after the AT+QMTCONN command.
  2. Subscribing to a topic using the AT+QMTSUB command also results in an “ERROR” response.

Configuration:

  • MQTT Broker: io.adafruit.com
  • Port: 1883
  • Client ID: client07
  • Username: MeetPatel
  • Password: [MyPassword]

AT Commands Sequence :
AT
AT+QMTCFG=“ALIAUTH”,0,“MeetPatel”,“[MyPassword]”,“client07”
AT+QMTOPEN=0,“io.adafruit.com”,1883
AT+QMTCONN=0,“client07”
AT+QMTCONN?
AT+QMTSUB=0,1,“MeetPatel/feeds/Relay1”,0
AT+QMTDISC=0

I’ve checked for correct formatting, double-checked the credentials, and even tried omitting the username and password, but the issue persists.

Request for Help: If anyone has experience with the EC200 module and MQTT connections, I would greatly appreciate your assistance. Any guidance, suggestions, or insights would be extremely valuable. If there’s something I might be missing or if you’ve encountered similar issues before, please share your thoughts.

Thank you in advance for your help!

iam using this Guide
Quectel_GSM_MQTT_Application_Note_V1.2.pdf (518.0 KB)

#iot-module #ec200 #MQTT

Is there any relation between io.adafruit.com and Ali cloud?


This parameter is only valid for Alibaba Cloud, you do not need to configure; You should configure clientid, username, password by QMTCONN

1 Like

No,
You are right.

I got the Answer
here are the AT Commands that work for me.

AT+QMTOPEN=0,“io.adafruit.com”,1883
Response: +QMTOPEN: 0,0

AT+QMTCONN=0,“MeetPatel”,“MeetPatel”,“Auth_Key”
Response: +QMTCONN: 0,0,0

AT+QMTSUB=0,1,“MeetPatel/feeds/Relay1”,0
Response: +QMTSUB: 0,1,0,0

Thank you For the Suggestion :slight_smile: