- Azure IoT Development Cookbook
- Yatish Patil
- 163字
- 2021-07-02 20:50:37
How it works...
In this sample, we retrieved the current information of the device twin and updated the desired properties, which were accessible on the device side. In the code, we set the coordinates of the device with latitude and longitude values, the device owner name, and so on. This same value will be accessible on the device side.
In a similar manner, we can set some properties on the device side which will be a part of the reported properties. While using the device twin, we must always consider:
- Tags can be set, read, and accessed only by the backend
- The reported properties are set by a device and can be read by the backend
- The desired properties are set by the backend and can be read by the backend
- We can use the read-only version and the last updated properties elements to detect updates when necessary
Each device twin size is limited to 8 KB per device in the IoT Hub.
推薦閱讀
- VMware View Security Essentials
- Modular Programming with Python
- Mastering OpenCV Android Application Programming
- R語(yǔ)言數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南
- Visual Basic程序設(shè)計(jì)習(xí)題解答與上機(jī)指導(dǎo)
- 秒懂設(shè)計(jì)模式
- Spring Boot Cookbook
- 從0到1:Python數(shù)據(jù)分析
- Python從入門到精通
- LabVIEW虛擬儀器程序設(shè)計(jì)從入門到精通(第二版)
- Django 3.0入門與實(shí)踐
- Go語(yǔ)言從入門到精通
- 高效使用Greenplum:入門、進(jìn)階與數(shù)據(jù)中臺(tái)
- Visual C++從入門到精通(第2版)
- 網(wǎng)絡(luò)綜合布線與組網(wǎng)實(shí)戰(zhàn)指南