Skip to content
Snippets Groups Projects
Commit 3c22e7da authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Correct a handful of bugs to make it work with Paulus' server

parent 2c205e25
No related branches found
No related tags found
No related merge requests found
...@@ -270,7 +270,7 @@ class RCUSCC(Device): ...@@ -270,7 +270,7 @@ class RCUSCC(Device):
self.name_space_index = 2 self.name_space_index = 2
self.obj_node = self.client.get_objects_node() self.obj_node = self.client.get_objects_node()
self.pcc_node = self.pcc_node.get_child([ "{}:PCC".format(self.name_space_index)]) self.pcc_node = self.obj_node.get_child([ "{}:PCC".format(self.name_space_index)])
self.debug_stream("Mapping OPC-UA MP/CP to attributes...") self.debug_stream("Mapping OPC-UA MP/CP to attributes...")
...@@ -306,13 +306,13 @@ class RCUSCC(Device): ...@@ -306,13 +306,13 @@ class RCUSCC(Device):
self.attribute_mapping["RCU01_Dither2_Frequency_RW"] = self.pcc_node.get_child(["{}:RCU01_Dither2_Frequency_RW".format(self.name_space_index)]) self.attribute_mapping["RCU01_Dither2_Frequency_RW"] = self.pcc_node.get_child(["{}:RCU01_Dither2_Frequency_RW".format(self.name_space_index)])
self.attribute_mapping["RCU01_LED0_R"] = self.obj_node.get_child([ "{}:RCU01_LED0_R".format(self.name_space_index)]) self.attribute_mapping["RCU01_LED0_R"] = self.pcc_node.get_child([ "{}:RCU01_LED0_R".format(self.name_space_index)])
self.attribute_mapping["RCU01_LED0_RW"] = self.obj_node.get_child([ "{}:RCU01_LED0_RW".format(self.name_space_index)]) self.attribute_mapping["RCU01_LED0_RW"] = self.pcc_node.get_child([ "{}:RCU01_LED0_RW".format(self.name_space_index)])
self.attribute_mapping["RCU01_Pwr_dig_R"] = self.pcc_node.get_child([ "{}:RCU01_Pwr_dig_R".format(self.name_space_index)]) self.attribute_mapping["RCU01_Pwr_dig_R"] = self.pcc_node.get_child([ "{}:RCU01_Pwr_dig_R".format(self.name_space_index)])
self.attribute_mapping["RCU01_Pwr_dig_RW"] = self.pcc_node.get_child([ "{}:_RCU01_Pwr_dig_RW".format(self.name_space_index)]) self.attribute_mapping["RCU01_Pwr_dig_RW"] = self.pcc_node.get_child([ "{}:RCU01_Pwr_dig_RW".format(self.name_space_index)])
self.attribute_mapping["RCU01_Temp_R"] = self.pcc_node.get_child([ "{}:RCU01_Temp_R".format(self.name_space_index)]) self.attribute_mapping["RCU01_Temp_R"] = self.pcc_node.get_child([ "{}:RCU01_Temp_R".format(self.name_space_index)])
...@@ -461,6 +461,27 @@ class RCUSCC(Device): ...@@ -461,6 +461,27 @@ class RCUSCC(Device):
self._RCU01_Band2_RW = value self._RCU01_Band2_RW = value
# PROTECTED REGION END # // RCUSCC.RCU01_Band2_RW_write # PROTECTED REGION END # // RCUSCC.RCU01_Band2_RW_write
def read_RCU01_Band3_R(self):
# PROTECTED REGION ID(RCUSCC.RCU01_Band3_R_read) ENABLED START #
"""Return the RCU01_Band3_R attribute."""
self._RCU01_Band3_R = self.attribute_mapping["RCU01_Band3_R"].get_value()
return self._RCU01_Band3_R
# PROTECTED REGION END # // RCUSCC.RCU01_Band3_R_read
def read_RCU01_Band3_RW(self):
# PROTECTED REGION ID(RCUSCC.RCU01_Band3_RW_read) ENABLED START #
"""Return the RCU01_Band3_R attribute."""
self._RCU01_Band3_RW = self.attribute_mapping["RCU01_Band3_RW"].get_value()
return self._RCU01_Band3_RW
# PROTECTED REGION END # // RCUSCC.RCU01_Band3_RW_read
def write_RCU01_Band3_RW(self, value):
# PROTECTED REGION ID(RCUSCC.RCU01_Band3_RW_write) ENABLED START #
"""Set the RCU01_Band3_RW attribute."""
self.attribute_mapping["RCU01_Band3_RW"].set_value(value)
self._RCU01_Band3_RW = value
# PROTECTED REGION END # // RCUSCC.RCU01_Band3_RW_write
def read_RCU01_Dither1_Frequency_R(self): def read_RCU01_Dither1_Frequency_R(self):
# PROTECTED REGION ID(RCUSCC.RCU01_Dither1_Frequency_R_read) ENABLED START # # PROTECTED REGION ID(RCUSCC.RCU01_Dither1_Frequency_R_read) ENABLED START #
"""Return the RCU01_Dither1_Frequency_R attribute.""" """Return the RCU01_Dither1_Frequency_R attribute."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment