Hi,
I manage to use the BLEkey successfully with the Mobile Nordic app or with gattttool in linux. When I try to use the client, I got some error that I'm unable to solve. Could you point me where to look to fix my problem and use the client?
Here is the output that I got when I try to use the client :
:~/BLEKey/client#
./blekey.py
Type quit, exit or ^D to cleanly exit and disonnect from BLEKey or you're gonna have a bad time...
? or help gets you a list of commands. Tab completion FTW.
[n/c] blekey> scan
scanning...
Traceback (most recent call last):
File "./blekey.py", line 138, in <module>
BLEKeyClient().cmdloop()
File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File "./blekey.py", line 28, in do_scan
scan_result = pygatt.util.lescan()
AttributeError: 'module' object has no attribute 'lescan'
`
OR this error with connect command:
[n/c] blekey> connect
connecting to D4:36:A4:31:DA:7C
Traceback (most recent call last):
File "./blekey.py", line 138, in <module>
BLEKeyClient().cmdloop()
File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File "./blekey.py", line 40, in do_connect
self.bk = pygatt.BluetoothLEDevice(mac, hci_device=BLE_DEVICE,
AttributeError: 'module' object has no attribute
> 'BluetoothLEDevice'
`
Thanks for your help.
Reactions are currently unavailable
Hi,
I manage to use the BLEkey successfully with the Mobile Nordic app or with gattttool in linux. When I try to use the client, I got some error that I'm unable to solve. Could you point me where to look to fix my problem and use the client?
Here is the output that I got when I try to use the client :
:~/BLEKey/client# ./blekey.py Type quit, exit or ^D to cleanly exit and disonnect from BLEKey or you're gonna have a bad time... ? or help gets you a list of commands. Tab completion FTW. [n/c] blekey> scan scanning... Traceback (most recent call last): File "./blekey.py", line 138, in <module> BLEKeyClient().cmdloop() File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop stop = self.onecmd(line) File "/usr/lib/python2.7/cmd.py", line 221, in onecmd return func(arg) File "./blekey.py", line 28, in do_scan scan_result = pygatt.util.lescan() AttributeError: 'module' object has no attribute 'lescan'`
OR this error with connect command:
[n/c] blekey> connect connecting to D4:36:A4:31:DA:7C Traceback (most recent call last): File "./blekey.py", line 138, in <module> BLEKeyClient().cmdloop() File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop stop = self.onecmd(line) File "/usr/lib/python2.7/cmd.py", line 221, in onecmd return func(arg) File "./blekey.py", line 40, in do_connect self.bk = pygatt.BluetoothLEDevice(mac, hci_device=BLE_DEVICE, AttributeError: 'module' object has no attribute > 'BluetoothLEDevice'`
Thanks for your help.