コード例 #1
0
ファイル: nuki.py プロジェクト: dauden1184/nukiPyBridge
	def __init__(self, macAddress, cfg='/home/pi/nuki/nuki.cfg'):	
		self._charWriteResponse = ""
		self.parser = nuki_messages.NukiCommandParser()
		self.crcCalculator = CrcCalculator()
		self.byteSwapper = ByteSwapper()
		self.macAddress = macAddress
		self.config = ConfigParser.RawConfigParser()
		self.config.read(cfg)
		self.device = None
コード例 #2
0
ファイル: nuki_messages.py プロジェクト: giejay/nukiPyBridge
	def __init__(self, authID='', nukiCommand=None, nonce='', publicKey='', privateKey=''):
		self.byteSwapper = ByteSwapper()
		self.crcCalculator = CrcCalculator()
		self.authID = authID
		self.command = nukiCommand
		self.nonce = nonce
		if nonce == '':
			self.nonce = nacl.utils.random(24).hex()
		self.publicKey = publicKey
		self.privateKey = privateKey
コード例 #3
0
ファイル: nuki_messages.py プロジェクト: giejay/nukiPyBridge
	def __init__(self):
		self.byteSwapper = ByteSwapper()
		self.commandList = ['0001','0003','0004','0005','0006','0007','000C','001E','000E','0023','0024','0026','0012']
コード例 #4
0
ファイル: nuki_messages.py プロジェクト: giejay/nukiPyBridge
	def __init__(self, payload=""):
		self.crcCalculator = CrcCalculator()
		self.byteSwapper = ByteSwapper()
		self.parser = NukiCommandParser()
		self.command = ''
		self.payload = payload
コード例 #5
0
 def __init__(self):
     self.byteSwapper = ByteSwapper()