Ubuntu
The DI SDK development environment provided consists of a compressed file containing the following:
-
Libraries and header files of Platform SDK and Agent Common Library
-
Reference agent source code
-
Scripts for compiling on Ubuntu
By running the above mentioned compressed file, you get the following outputs:
-
The per-second voltage, current and other metrology data is fed as a .csv file to the simulator running on Ubuntu.
-
The reference agent processes this data and generates sample events. If the voltage drops below a threshold, it OPENs an event. If the voltage rises above the threshold, it CLOSEs the event. The message format is “MessageType|State|Voltage.”
Developers must do the following:
-
Change the data that is subscribed to by the reference gent to what they want for their application.
-
Change the .csv file to provide the information that they want to simulate.
-
Change the logic in the reference agent to process the data to their needs. Note that the meter uses uClibc and not glibc, so make sure that the C library functions being used are supported and available within uClibc.
-
Change the message format to suit their alarms.
For more information on running and building the SDK package quickly, see Set up the agent development environment .
Note: The dependency on the IoT Hub in Azure is for initial development purposes only. In the final deployment, the messages will be directly posted to the Service Bus whose SAS URI is provided to the DI Subscription Service.