Azure IoT Hub, EventHub and Functions

前端 未结 3 631
失恋的感觉
失恋的感觉 2021-01-12 03:20

I have an IoTHub with a route that points to an EventHub which triggers a Functions.

I\'m having problem getting the DeviceId and other IoT Hub properties

3条回答
  •  半阙折子戏
    2021-01-12 04:14

    That's the recommended way of doing this, if you need access to detailed event properties in addition to the payload. The simple/default bindings for string etc. are useful in cases where you don't need to access those event properties. Our runtime calls EventData.GetBytes() for you behind the scenes and converts the data to the input type you've specified.

    I do think we could make improvements to facilitate these scenarios however. I've logged a bug here in our repo to track this.

提交回复
热议问题