- 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.
推薦閱讀
- Flask Web全棧開發實戰
- Oracle WebLogic Server 12c:First Look
- C程序設計簡明教程(第二版)
- TensorFlow Lite移動端深度學習
- 大學計算機基礎實驗教程
- Oracle BAM 11gR1 Handbook
- Functional Kotlin
- Elasticsearch for Hadoop
- 從零開始學C語言
- Swift Playgrounds少兒趣編程
- Advanced Express Web Application Development
- Spring Boot+Vue全棧開發實戰
- C++程序設計教程(第2版)
- 從程序員角度學習數據庫技術(藍橋杯軟件大賽培訓教材-Java方向)
- Ext JS 4 Plugin and Extension Development