部署IoT Edge模块时出现异常 [英] Exception when deploying IoT Edge Module

查看:135
本文介绍了部署IoT Edge模块时出现异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下路由配置来删除两个模块:

I'm trying to deply two modules with the following routing-configuration:


{

推荐答案

Hello Lukas_H,

Hello Lukas_H,

我跟着
本教程
并将一个< FilterModule模块部署到我的边缘设备。

I followed this tutorial and deploy a FilterModule module to my edge device.

这是我的路线:

{
   "routes":{
      "sensorToFilter":"FROM /messages/modules/tempSensor/outputs/temperatureOutput INTO BrokeredEndpoint(\"/modules/filterModule/inputs/input1\")",
      "filterToIoTHub":"FROM /messages/modules/filterModule/outputs/output1 INTO


upstream" ;
}
}
upstream" } }

我的边缘设备启动并成功运行,我可以监控来自VS代码的事件:

My edge device start and run successfully and I can monitor events from VS code:

关于您的问题我发现您的路线未指定输出输入而不是"*"。

About your issue I found your routes not specified output and input instead of "*".

因此,您可以提供有关模块输入和输出处理程序的更多详细信息,例如:

So you can provide more detailed information about your modules' input and output handlers like:

            // Register callback to be called when a message is received by the module
            await ioTHubModuleClient.SetInputMessageHandlerAsync("input1", FilterMessages, ioTHubModuleClient);

或者您可以查看我上面链接的模块创建和设置的教程。

Or you can check the tutorial I linked above of module create and setting.

如果您有任何疑虑,请随时告诉我。

If you have any concern feel free let me know.

最好的问候,

Rita


这篇关于部署IoT Edge模块时出现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆