STM32+ESP8266+MQTT connects to Alibaba Cloud server (3. AT command connects to Alibaba Cloud platform)

1. Check the device certificate and prepare for subsequent connections.

2. Use Alibaba Cloud configuration tool to generate device information and client ID
Alibaba Cloud IoT Platform Configuration ToolExtraction code: oxq9
(1) Paste the triplet information of your device certificate into the corresponding text box and click to generate client ID, username and password

(2) Connect to Alibaba Cloud ESP8266+AT command
Reboot the device
AP+Station mode
Enable the SNTP server, time domain 8, the SNTP server is the Alibaba Cloud domain name
Connect to WIFI
Configure MQTT user properties
Configure MQTT client ID
Connect/query MQTT Broker
Subscribe/query topic
Note: Remember to replace the instructions sent above with information related to the products you create!

After sending all the AT commands to the Alibaba Cloud management platform, you will see that the device you created is online.

On the management platform, click Monitoring and Operation->Online Debugging->Find the attribute debugging to send simulation data to ESP8266, and use the serial port to print out the subscribed data.

The serial port debugging assistant prints out the subscribed message data.

Post a string message
Publish a message to the platform and send the temperature data to 36.5 degrees. The reported temperature data can be viewed on the management platform.

The following is using STM32 to connect to the Alibaba Cloud platform through code
STM32 connects to Alibaba Cloud

Related Posts

Several methods of remote connection to Galaxy Kirin advanced server operating system V10SP1 (command line remote + graphical remote)

Cloud migration practice: Migrate VMware virtual machines to Huawei Cloud

Based on the 51 tracking car (the first project for beginners!!!)

Yuanchuang Essay Collection|[Cloud Native] Docker View Log Usage Notes

LeetCode Greedy Algorithm 1005. Maximized array sum after K times inversion

Robomaster wheel motion calculation

Thoroughly understand permissions in Linux [detailed explanation]

docker startup command, docker restart command, docker shutdown command

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>