stm32 controls ESP8266 to upload data to Alibaba Cloud

The user product data is defined in mqtt.h. The data here are the Alibaba Cloud platform MQTT connection parameters. The wifi name and wifi password are the hot spots for ESP8266 connection.

359385af60cc42b39a8672307fd832a9.png

 

The instructions sent by the topic here are sent based on the self-defined topic.

snprintf(cmd, 256,"AT+MQTTPUB=0,\"/sys/ is the 9th step of the AT command/MyDevice/thing/event/property/post\",\"{params:{\\\" attribute identification character parameter, the following %d is the data type you set \\\":%d}}\",0,0",
          the data sent);

9c61f4af054f4a008cd81fd5b63c71a0.png

 

1d5f50d1f1eb464896dabc0e59cdf15b.png

 

 

Guess you like

Origin blog.csdn.net/m0_71827453/article/details/132284789