Esempio n. 1
0
 def setDouble(self,name, value, ignoreCurrent=False):
     writer = RemoteMeDataWriter()
     writer.writeUInt16(remotemeStruct.VariableType.DOUBLE._value_)
     writer.writeString(name)
     writer.writeDouble(1 if value else 0)
     self.__remoteMe.send(
         remotemeMessages.getVariableChangeMessage(self.__remoteMe.getDeviceId(), ignoreCurrent, writer.getBytes()))
Esempio n. 2
0
 def setText2(self, name, value, value2, ignoreCurrent=False):
     writer = RemoteMeDataWriter()
     writer.writeUInt16(remotemeStruct.VariableType.TEXT_2._value_)
     writer.writeString(name)
     writer.writeString(value)
     writer.writeString(value2)
     self.__remoteMe.send(
         remotemeMessages.getVariableChangeMessage(self.__remoteMe.getDeviceId(), ignoreCurrent, writer.getBytes()))
Esempio n. 3
0
 def setIntegerBoolean(self,name, value, value2, ignoreCurrent=False):
     writer = RemoteMeDataWriter()
     writer.writeUInt16(remotemeStruct.VariableType.INTEGER_BOOLEAN._value_)
     writer.writeString(name)
     writer.writeInt32(value)
     writer.writeUInt8(1 if value2 else 0)
     self.__remoteMe.send(
         remotemeMessages.getVariableChangeMessage(self.__remoteMe.getDeviceId(), ignoreCurrent, writer.getBytes()))
Esempio n. 4
0
 def setSmallInteger3(self,name, value, value2, value3, ignoreCurrent=False):
     writer = RemoteMeDataWriter()
     writer.writeUInt16(remotemeStruct.VariableType.SMALL_INTEGER_3._value_)
     writer.writeString(name)
     writer.writeInt16(value)
     writer.writeInt16(value2)
     writer.writeInt16(value3)
     self.__remoteMe.send(
         remotemeMessages.getVariableChangeMessage(self.__remoteMe.getDeviceId(), ignoreCurrent, writer.getBytes()))