Thank you for sharing your code. I've ported it to Python 3 as far as I could, but still get errors:
Starting BLE adapter...
Init Nuki BLE connection...
Nuki BLE connection established
Nuki Pairing UUID handle created: 008b
Traceback (most recent call last):
File "./init.py", line 17, in
nuki.authenticateUser(myPublicKeyHex, myPrivateKeyHex, myID, myIDType, myName)
File "/home/pi/nukiPyBridge/nuki.py", line 88, in authenticateUser
publicKeyReqCommand = publicKeyReq.generate()
File "/home/pi/nukiPyBridge/nuki_messages.py", line 50, in generate
return array.array('B',msg.decode("hex"))
AttributeError: 'str' object has no attribute 'decode'
Can you check my changes and if they're fine, fix the (hopefully) small rest?
nukiPyBridge.diff.txt
Thank you for sharing your code. I've ported it to Python 3 as far as I could, but still get errors:
Starting BLE adapter...
Init Nuki BLE connection...
Nuki BLE connection established
Nuki Pairing UUID handle created: 008b
Traceback (most recent call last):
File "./init.py", line 17, in
nuki.authenticateUser(myPublicKeyHex, myPrivateKeyHex, myID, myIDType, myName)
File "/home/pi/nukiPyBridge/nuki.py", line 88, in authenticateUser
publicKeyReqCommand = publicKeyReq.generate()
File "/home/pi/nukiPyBridge/nuki_messages.py", line 50, in generate
return array.array('B',msg.decode("hex"))
AttributeError: 'str' object has no attribute 'decode'
Can you check my changes and if they're fine, fix the (hopefully) small rest?
nukiPyBridge.diff.txt