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

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.

主站蜘蛛池模板: 沈阳市| 平乡县| 天长市| 惠水县| 石河子市| 汉中市| 漳州市| 昭苏县| 泰顺县| 开江县| 项城市| 通河县| 内丘县| 平远县| 扎兰屯市| 靖州| 克东县| 嘉黎县| 东城区| 罗平县| 大同县| 曲阜市| 池州市| 桐庐县| 休宁县| 稷山县| 丰台区| 福海县| 甘孜县| 巍山| 万荣县| 怀仁县| 西藏| 玉树县| 当阳市| 清远市| 龙海市| 潞城市| 健康| 凤翔县| 公安县|