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:
- The MQTT connection fails with the “ERROR” response after the AT+QMTCONN command.
- 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