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

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.
主站蜘蛛池模板: 广东省| 鄄城县| 高清| 九龙城区| 鄂伦春自治旗| 剑阁县| 申扎县| 彩票| 玛沁县| 平谷区| 卢湾区| 巴林左旗| 苏尼特左旗| 宁晋县| 若羌县| 隆子县| 南雄市| 盐亭县| 黄山市| 桂东县| 青阳县| 辛集市| 宕昌县| 乐安县| 桃园市| 温宿县| 辽阳县| 连山| 宜章县| 肃宁县| 阳信县| 阿拉尔市| 晴隆县| 鄂尔多斯市| 普兰店市| 沙坪坝区| 五台县| 华安县| 海口市| 怀柔区| 汉沽区|