WeChat applet-MQTT simulator
WeChat applet code
1. Preparations
1.1 Registering an Alibaba Cloud account
Open an Aliyun account and pass the Alipay real-name authentication https://www.aliyun.com
1.2 Open the IoT kit for free
Product official website https://www.aliyun.com/product/iot
2. Console operation steps
2.1 Create a premium product
** Premium version, JSON format **
2.2 Product Function Definition
Add product attribute ** **
temperature temperature, humidity humidity
2.3 Registering Devices
Register the device under the product, get the identity triplet
3. WeChat Mini Program Operation
3.1 Device online
3.2 Report data
3.3 Subscribe Topic and Data Downstream
First click to subscribe to the topic , and then go to the console to push the message.