Пример #1
0
 def setMinVoltageWarning(self, value, phasenumber):
     moduleID = 'P1'
     guid = 10049
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), phasenumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #2
0
 def setCurrentWarningEvent(self, value, portnumber=1):
     moduleID = 'P1'
     guid = 10078
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #3
0
 def setSNMPTrapRecvPort(self, value, portnumber=1):
     guid = 10021
     moduleID = 'M1'
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #4
0
 def setSNMPTrapCommunityRead(self, value):
     guid = 10073
     moduleID = 'M1'
     portnumber = 0
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #5
0
 def rezeroTransducer(self, portnumber):
     guid = 40050
     moduleID = 'M1'
     value = 1
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #6
0
 def setSSOIPAddress(self, ip):
     moduleID = "M1"
     guid = 10156
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid,
                                             convert.value2bin(ip, valDef),
                                             0)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #7
0
 def setModuleScan(self, value=1):
     guid = 40027
     moduleID = 'M1'
     portnumber = 0
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #8
0
 def setGeneralEventEnable(self, value):
     guid = 10074
     moduleID = 'M1'
     portnumber = 0
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #9
0
 def doApparentTotalEnergyReset(self, moduleID):
     guid = 10072
     portnumber = 0
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid,
                                             convert.value2bin(1, valDef),
                                             portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #10
0
 def setMaxTemperatureWarning(self, value):
     moduleID = 'M1'
     guid = 10053
     portnumber = 0
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #11
0
 def setSSOGracefullShutdown(self, url):
     moduleID = "M1"
     guid = 10158
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid,
                                             convert.value2bin(url, valDef),
                                             0)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #12
0
 def setModuleName(self, value):
     guid = 10001
     portnumber = 0
     moduleID = "M1"
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #13
0
 def setOscilloscopeFrequencySample(self, moduleID, portnumber):
     guid = 40005
     value = portnumber * 16 + 8
     valDef = self._guidTable[guid]
     data = self._parent.client.setData(moduleID,
                                        guid,
                                        data=convert.value2bin(
                                            value, valDef),
                                        length=1)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #14
0
 def setSNMPTrapRecvPort(self, value, portnumber=0):
     """
     portnumber parameter not used, put only for compatibility
     """
     guid = 10021
     moduleID = "M1"
     portnumber = 0
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #15
0
 def setPowerWarningEvent(self, portnumber, value):
     """
     @param portnumber: can be from 1 to 12
     """
     guid = 10080
     moduleID = 'M1'
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #16
0
 def setAdminLoginAndPassword(self, name, password):
     guid = 40012
     moduleID = "M1"
     portnumber = 3
     valDef = self._guidTable[guid]
     name = name.ljust(16, "\0")  # pylint: disable=W1401
     password = password.ljust(16, "\0")  # pylint: disable=W1401
     value = name + password
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #17
0
 def setPowerCycleTime(
     self,
     moduleID,
     value,
     portnumber=1,
 ):
     guid = 10099
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #18
0
 def setRestrictedLoginAndPassword(self, name, password):
     guid = 40012
     moduleID = 'M1'
     portnumber = 2
     valDef = self._guidTable[guid]
     name = name.ljust(16, "\x00")
     password = password.ljust(16, "\x00")
     value = name + password
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #19
0
 def doActiveEnergyReset(self, moduleID):
     guid = 10050
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid,
                                             convert.value2bin(1, valDef))
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #20
0
 def setMaxCurrentOff(self, moduleID, value, portnumber=1):
     guid = 10038
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(
         moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
 def setMaxBigPowerWarning(self, value, portnumber=1):
     moduleID = "P1"
     guid = 10194
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #22
0
 def setSSOLoginCredentials(self, credentials):
     moduleID = "M1"
     guid = 10157
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(credentials, valDef), 0)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #23
0
 def setVoltageWarningEvent(self, moduleID, value):
     guid = 10086
     portnumber = 0
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
 def setExternalSensorLabel(self, moduleID, value, portnumber=1):
     guid = 10109
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(value, valDef), portnumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
 def setHeartbeatInterval(self, value):
     guid = 10179
     moduleID = "M1"
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(value, valDef), 0)
     return self._parent.getObjectFromData(data, valDef, setter=True)
 def setMaxVoltageWarning(self, moduleID, value, linenumber=1):
     guid = 10047
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(value, valDef), linenumber)
     return self._parent.getObjectFromData(data, valDef, setter=True)
Пример #27
0
 def setUPSOffLevel(self, level):
     moduleID = "M1"
     guid = 10160
     valDef = self._guidTable[guid]
     data = self._parent.client.setAttribute(moduleID, guid, convert.value2bin(level, valDef), 0)
     return self._parent.getObjectFromData(data, valDef, setter=True)