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

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.
主站蜘蛛池模板: 揭阳市| 洛南县| 武威市| 阿克陶县| 宜川县| 黄山市| 石渠县| 大田县| 福贡县| 迁安市| 五莲县| 贡觉县| 广宗县| 信阳市| 济南市| 台江县| 汤原县| 松溪县| 噶尔县| 铁岭县| 清新县| 海安县| 集贤县| 和林格尔县| 洪江市| 申扎县| 赣州市| 延边| 那曲县| 汶上县| 新巴尔虎左旗| 巴南区| 永兴县| 积石山| 乌鲁木齐市| 郴州市| 吉木乃县| 南丰县| 藁城市| 永兴县| 邢台市|