Azure IoT Hub入门系列 (14)- 将IoT Hub Service SDK 调用Direct Method 封装为Azure Functions Http Trigger(C#)
本文介绍: 将IoT Hub Service SDK 调用Direct Method 封装为Azure Functions Http Trigger(C#) 视频介绍: 图文介绍: 本文内容比较简单,不做图文介绍了,直接创建functions,采用http 触发,添加如下代码,发布后即可通过调用http请求的方式,向iot hub 发送 direct method 调用。 注意: 1.引用包:using Microsoft.Azure.Devices; 2.本例调用的客户端案例为\azure-iot-samples-node-master\iot-hub\Quickstarts\simulated-device-2 3. 其中iot hub 连接字符串写入functions 配置文件,deviceid 和payload 通过query …