espressif / esp-aws-expresslink-eval

Espressif AWS IoT ExpressLink Evaluation and Firmware Repository
Apache License 2.0
17 stars 17 forks source link

Problem Receiving data and commands from the cloud #4

Open claudiomas opened 2 years ago

claudiomas commented 2 years ago

I use ESP32-C3-AWS-EspressLink-DevKit to testing. The ExpressLink board is connect over a USB serial interface. I followed your "Getting Starde Guide https://github.com/espressif/esp-aws-expresslink-eval#6-connecting-and-interacting-with-aws-cloud". All the steps went well, but at step "6.3 Receiving data and commands from the cloud", after entered the command: AT + GET1, I do not receive the message "OK Hello from the AWS IoT" at the console. Could you help me to understand what did I do wrong? P.s. In attached file find our log file. Thank you Related Files: https://www.espressif.com/sites/default/files/webform/salesquestions/log_0.txt log.txt

dhavalgujar commented 2 years ago

Hi @claudiomas, from the log it seems you might be publishing to the wrong MQTT topic from the AWS IoT console. Can you please confirm if you are publishing to topic: <ThingName>/MyTopic as shown below:

image

Another quick test that you can do, to verify if PubSub is working correctly is:

AT+CONNECT
AT+CONF Topic1=MyTopic
AT+SUBSCRIBE1
AT+SEND1 Test message
AT+GET1

You should see "OK Test message"