Reputation: 23
I am trying to do a project that takes values from a physical device and compares it to the values of from a Digital Twin, for this I have a physical device and a C++ representation of the model that I want to compare.
I already set up a connection for my real data to get to Azure IoT hub and then via Azure Function over to the Azure Digital Twin but now I'm a bit stuck what is the best option to run the virtual simulation to create my virtual data and compare it.
Any ideas what is the optimal way to run C++ code virtually in the Azure environment?
Upvotes: 0
Views: 232
Reputation: 650
Azure functions does not support C++ code support out of the box. Please refer to the resource Language support details to get more information on supported languages. You can look into creating Azure custom handlers and figure out a way create a custom handler to support C++ code.
If you can off load the Comparisions from Cloud to different device, Azure IoT Edge is a great way to achieve the same functionality. With this approach you are not limited with programming choice and IoT Edge supports Creation of Custom modules in C++. Azure IoT Edge has support for Windows and Linux environments where you can build custom modules and can send the processed filtered result to the Azure IoT Hub. Azure IoT Edge can also be set up on devices such as Raspberry Pi.
If your actual device supports Azure IoT Edge, the best way to achieve the use case is to get the C++ representation of the model on to the edge module and compare it with the data and pass the processed data to the Azure IoT Hub.
Here are a couple of resources that will help you get started with Azure IoT Edge
Upvotes: 1