官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 昌都县| 湘西| 清新县| 安吉县| 班戈县| 陕西省| 尉犁县| 堆龙德庆县| 凤冈县| 威宁| 华容县| 莱芜市| 博爱县| 万盛区| 祁阳县| 水城县| 珠海市| 衡东县| 石柱| 无极县| 天水市| 深泽县| 兴安盟| 高阳县| 石屏县| 淮阳县| 修水县| 三门峡市| 库车县| 阳山县| 蓬溪县| 南开区| 崇左市| 东安县| 凤翔县| 沧州市| 南岸区| 白银市| 阳原县| 汾阳市| 长汀县|