Module ddCommunication.protocols.LCPWirelessProtocol.DDCPReplyTelegrams.SetHandOnReferenceReply
Expand source code
class SetHandOnReferenceReply:
def __init__(self, status):
if(status == 0x01):
self.ReferenceAccepted = True
else:
self.ReferenceAccepted = False
if status == 0x39:
self.PasswordNeeded = True
else:
self.PasswordNeeded = False
def GetBytes(self):
pass
def GetMessageType(self):
return 0x20
def GetTypeHeader(self):
return 0x00
@staticmethod
def FromBytes(data):
b = data[0]
return SetHandOnReferenceReply(b)
Classes
class SetHandOnReferenceReply (status)
-
Expand source code
class SetHandOnReferenceReply: def __init__(self, status): if(status == 0x01): self.ReferenceAccepted = True else: self.ReferenceAccepted = False if status == 0x39: self.PasswordNeeded = True else: self.PasswordNeeded = False def GetBytes(self): pass def GetMessageType(self): return 0x20 def GetTypeHeader(self): return 0x00 @staticmethod def FromBytes(data): b = data[0] return SetHandOnReferenceReply(b)
Static methods
def FromBytes(data)
-
Expand source code
@staticmethod def FromBytes(data): b = data[0] return SetHandOnReferenceReply(b)
Methods
def GetBytes(self)
-
Expand source code
def GetBytes(self): pass
def GetMessageType(self)
-
Expand source code
def GetMessageType(self): return 0x20
def GetTypeHeader(self)
-
Expand source code
def GetTypeHeader(self): return 0x00