Our Edge Devices are based on the Azure IoT Edge Runtime. One of the modules, which is responsible of data processing is a custom module running a version of Apache Nifi. The output of the processing should either go to the Azure IoT Edge Message Bus and/or to the Cloud Upstream via IoT Hub.
Does anybody know how to connect those parts of the Edge System? Do we have to write C# code on the custom module to get this done or is there another way to accomplish this?
Edit:
After further investigation i learned that i can connect to IoT Hub using MQTT according to this and interaction with the local Message Bus should be able by writing a custom Nifi Processor as shown here using the Java SDK of the ModuleClient, just supplying a correct connection string and making sure, the custom container can reach the host machine via IP.
Do you think my assumptions are correct to achieve our goal?