Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SampleCommunicator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ java {
dependencies {

// SGr dependencies
implementation group: 'com.smartgridready', name: 'sgr-commhandler', version: '2.4.0'
implementation group: 'com.smartgridready', name: 'sgr-commhandler', version: '2.4.1'
runtimeOnly group: 'com.smartgridready', name: 'sgr-driver-j2mod', version: '1.0.0'
runtimeOnly group: 'com.smartgridready', name: 'sgr-driver-apachehttp', version: '2.1.0'
runtimeOnly group: 'com.smartgridready', name: 'sgr-driver-apachehttp', version: '2.1.1'
runtimeOnly group: 'com.smartgridready', name: 'sgr-driver-hivemq', version: '2.0.1'

// Logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public static void main(String[] argv)
// The next command sets the heat pump to comfort operation, which is defined as an enum.
// To determine valid enum strings for a given data point, have a look at the EI-XML file.
// ('./resources/SampleExternalInterfaceFile.xml' in our case)
// Make sure that the type of the value instance you are feeding into the data point
// matches the data point's data type, e.g. EnumValue if the data point's data type is enum.
// If not, conversion errors may occur. This is a library issue which is yet to be resolved.
sgcpDevice.setVal(HEAT_PUMP_BASE_PROFILE, HEAT_PUMP_OP_CMD, EnumValue.of("WP_DOM_WATER_OP"));
// It is also possible to set the value as an ordinal.
sgcpDevice.setVal(HEAT_PUMP_BASE_PROFILE, HEAT_PUMP_OP_CMD, EnumValue.of(5));
Expand Down