Azure IoT Hub - IoT Hub Trigger does not execute when route is enabled

题意:“Azure IoT Hub - 当启用路由时,IoT Hub 触发器不会执行”

问题背景:

I am trying to save JSON files sent to IoT Hub to a cosmos DB using a function that's triggered by IoT Hub. I am also trying to save the same files to a blob for long term storage.

“我正在尝试使用由 IoT Hub 触发的函数将发送到 IoT Hub 的 JSON 文件保存到 Cosmos DB。我还尝试将相同的文件保存到 Blob 以便进行长期存储。”

So far the function and route work well independently, but they are not working at the same time (when route is enabled, the function is not triggered. The function only triggers when the route is not enabled.)

“到目前为止,函数和路由在独立工作时都很好,但它们不能同时工作(当路由启用时,函数不会被触发。只有在路由未启用时,函数才会触发。)”

猜你喜欢

转载自blog.csdn.net/suiusoar/article/details/143380481