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

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.
主站蜘蛛池模板: 新余市| 土默特左旗| 兴安盟| 家居| 莎车县| 澄迈县| 莱州市| 台中县| 电白县| 满洲里市| 邓州市| 滦平县| 青岛市| 吉木萨尔县| 尼木县| 济阳县| 塘沽区| 湖州市| 桃园市| 明水县| 仁寿县| 敖汉旗| 九江县| 台江县| 建昌县| 南城县| 驻马店市| 余江县| 万宁市| 上饶市| 梁山县| 桂林市| 湖南省| 贵定县| 冕宁县| 迭部县| 荔浦县| 巫山县| 治县。| 新干县| 门源|