- 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.
推薦閱讀
- 認識編程:以Python語言講透編程的本質(zhì)
- C語言程序設計實訓教程
- Mastering Ubuntu Server
- 深入淺出DPDK
- Python深度學習:模型、方法與實現(xiàn)
- PHP從入門到精通(第4版)(軟件開發(fā)視頻大講堂)
- Swift 4從零到精通iOS開發(fā)
- Programming with CodeIgniterMVC
- Python從入門到精通(第3版)
- ASP.NET 4.0 Web程序設計
- 大數(shù)據(jù)時代的企業(yè)升級之道(全3冊)
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發(fā)技術
- JavaScript Mobile Application Development
- Visual FoxPro程序設計
- Microsoft Hyper-V PowerShell Automation