I have an IoT Edge Module in C which I am trying to make to act as a filter module with multiple inputs .I have followed default c module and created a module with "input1" and route set accordingly.
As a trial modified "input1"to "input2",and set route as below.
code:
IoTHubModuleClient_LL_SetInputMessageCallback(iotHubModuleClientHandle, "input2", InputQueue2Callback, (void*)iotHubModuleClientHandle)
route:
Route:
sensormoduleTofiltermodule:FROM /messages/modules/sensormodule/outputs/* INTO BrokeredEndpoint("/modules/filtermodule/inputs/input2")
Ihave following errors from filtermodule, which I couldnot resolve.
Error: Time:Wed Jul 21 15:30:12 2021 File:/build/azure-iot-sdk-c-PMWlQ1/azure-iot-sdk-c-0.2.0.0/iothub_client/src/iothubtransport_mqtt_common.c Func:processIncomingMessageNotification Line:1766 IoTHubClientCore_LL_MessageCallbackreturned false
Error: Time:Wed Jul 21 15:30:13 2021 File:/build/azure-iot-sdk-c-PMWlQ1/azure-iot-sdk-c-0.2.0.0/iothub_client/src/iothub_client_core_ll.c Func:IoTHubClientCore_LL_MessageCallbackFromInput Line:674 Could not find callback (explicit or default) for input queue input2
I would like to knowwhether it is possible to have modules with multiple inputs?If so ,how can I