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

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.

主站蜘蛛池模板: 卓资县| 玉门市| 米泉市| 衡南县| 梓潼县| 贵港市| 周口市| 宜都市| 高青县| 岱山县| 吴江市| 嫩江县| 承德县| 独山县| 黄梅县| 凌海市| 江津市| 龙陵县| 天长市| 福清市| 林芝县| 讷河市| 县级市| 滁州市| 四会市| 开阳县| 曲麻莱县| 清丰县| 甘谷县| 屯留县| 栖霞市| 茂名市| 松原市| 鲁山县| 新兴县| 荔波县| 油尖旺区| 博客| 北辰区| 平山县| 潞西市|