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

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.

主站蜘蛛池模板: 洛宁县| 开化县| 宝丰县| 台南县| 滦南县| 寿阳县| 关岭| 育儿| 司法| 临夏县| 汶川县| 都匀市| 公安县| 克东县| 玛纳斯县| 洱源县| 尼勒克县| 永年县| 炉霍县| 丹阳市| 错那县| 靖江市| 达州市| 方正县| 邻水| 东辽县| 威信县| 徐州市| 巫溪县| 汉沽区| 泽普县| 颍上县| 炉霍县| 蓝田县| 香港 | 阿图什市| 邢台市| 镇安县| 新沂市| 乳山市| 光山县|