プライバシーポリシー
データプライバシーとセキュリティ契約
IOT_Shadow_Update by the following function in the SDK code sample/scenarized/aircond_shadow_sample_v2.c. Then, the corresponding callback function is registered to handle the response of the device shadow. You can customize the reported attributes here._do_report_energy_consumption(...)...IOT_Shadow_Update(...)
./aircond_shadow_sample_v2. Please note that if MQTT asymmetric encryption is used, the root certificate, device certificate, and device key files should be placed in the parent directory of ./../certs.
./door_mqtt_sample come_home/leave_home airConditioner1. door1 will communicate with airConditioner1, and then airConditioner1 will be instructed to turn on through the rule engine. The reported changes in energy consumption and indoor temperature can be observed in the log, and the shadow data is obtained again through the RESTful API (as detailed in step 2):

airConditioner1 is turned on, the air conditioner energy consumption is dynamically reported to the shadow, and the data can be successfully queried and obtained through the RESTful API.deviceName=airConditioner1, productName=AirConditioner.フィードバック