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

How it works...

In this example, we looked at a job updating the device twin information, and we can follow up the job for its status to find out whether the job was completed or failed. In this case, instead of having single API calls, a job can be created to execute on multiple IoT devices. The job client object provides the jobs available with the IoT Hub using the connection to it. Once we locate the job using its unique ID, we can retrieve the status for it.

The code snippet mentioned in the How to do it... section uses the temperature properties and updates the data. The job is scheduled to start execution immediately with a 10-second execution timeout set.

主站蜘蛛池模板: 建水县| 深水埗区| 阿克苏市| 威海市| 黄浦区| 讷河市| 安康市| 黔西| 东城区| 彭水| 泗水县| 奉新县| 常德市| 和政县| 西藏| 静海县| 克什克腾旗| 天祝| 科技| 土默特右旗| 苏尼特左旗| 绍兴县| 铜鼓县| 新野县| 车致| 祁东县| 佛坪县| 宜兴市| 饶河县| 塔城市| 荔浦县| 韶山市| 铜梁县| 永泰县| 许昌县| 甘德县| 土默特左旗| 永丰县| 亚东县| 昌乐县| 长寿区|