Send temperature sensor module messages from lower layer device to upper layer device in Azure IoT

Viewed 14

Scenario is to build a hierarchy of IoT devices and at the upper layer I need to receive the messages send from the child device. I have tried giving BrokeredEndpoint at the routes in the deployment.json file in the upper layer at the input. My code "routes": { "pythondepmoduleToIoTHub": "FROM /messages/modules/pythondepmodule/outputs/* INTO $upstream", "sensorTopythondepmodule": "FROM /messages/modules/childdeviceModule/outputs/output INTO BrokeredEndpoint("/modules/pythondepmodule/inputs/input1")" }, At the upper layer(deployment.json file) "routes": { "childdeviceModuleToIoTHub": "FROM /messages/modules/childdeviceModule/outputs/* INTO $upstream", "sensorTochilddeviceModule": "FROM /messages/modules/SimulatedTemperatureSensor/outputs/temperatureOutput INTO BrokeredEndpoint("/modules/childdeviceModule/inputs/input1")" }, At the lower layer

0 Answers
Related