pplapp module, developed by Direct Energy Partners, includes several built-in functions. These functions are
designed to either retrieve measurement data from the NATS interface or send commands to the controller through the
NATS interface. The controller then forwards these commands to the respective devices in the microgrid. Below is a list
of all the commands available for use in the custom application.
To use these functions, call the app instance of the pplapp module and enter the desired function. See the examples
below for more information.
getAllMeasurements
getMeasurement
devices.json file, and registerName, which should be defined in the address map of that device. Refer to the example below for clarity.setCommands
devices.json file, and commands, which is a dictionary containing all the commands to be sent to that device. Note that the commands should be defined in the address map of the device. Refer to the example below for clarity.