-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
$ python3 ./main.py
DEBUG:ble:118: connecting...
DEBUG:ble:122: address=FE:55:21:1D:92:3A. details={'path': '/org/bluez/hci0/dev_FE_55_21_1D_92_3A', 'props': {'Address': 'FE:55:21:1D:92:3A', 'AddressType': 'random', 'Name': 'ncb_Tag-CFB2052F', 'Alias': 'ncb_Tag-CFB2052F', 'Paired': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -51, 'Connected': False, 'UUIDs': ['00001811-0000-1000-8000-00805f9b34fb'], 'Adapter': '/org/bluez/hci0', 'ServicesResolved': False}}, metadata={'uuids': ['00001811-0000-1000-8000-00805f9b34fb'], 'manufacturer_data': {}}
DEBUG:ble:122: address=72:7F:4C:BC:18:1D. details={'path': '/org/bluez/hci0/dev_72_7F_4C_BC_18_1D', 'props': {'Address': '72:7F:4C:BC:18:1D', 'AddressType': 'random', 'Alias': '72-7F-4C-BC-18-1D', 'Paired': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'Connected': False, 'UUIDs': [], 'Adapter': '/org/bluez/hci0', 'ManufacturerData': {76: [16, 5, 1, 152, 232, 176, 47]}, 'ServicesResolved': False, 'RSSI': -43, 'TxPower': 24}}, metadata={'uuids': [], 'manufacturer_data': {76: [16, 5, 1, 152, 232, 176, 47]}}
DEBUG:ble:122: address=FC:C4:A6:81:80:60. details={'path': '/org/bluez/hci0/dev_FC_C4_A6_81_80_60', 'props': {'Address': 'FC:C4:A6:81:80:60', 'AddressType': 'random', 'Name': 'msa-CFB1DD08', 'Alias': 'msa-CFB1DD08', 'Paired': False, 'Trusted': False, 'Blocked': False, 'LegacyPairing': False, 'RSSI': -51, 'Connected': False, 'UUIDs': ['00001811-0000-1000-8000-00805f9b34fb'], 'Adapter': '/org/bluez/hci0', 'ServicesResolved': False}}, metadata={'uuids': ['00001811-0000-1000-8000-00805f9b34fb'], 'manufacturer_data': {}}
DEBUG:ble:170: Device found FC:C4:A6:81:80:60: msa-CFB1DD08
Traceback (most recent call last):
File "./main.py", line 73, in <module>
main()
File "./main.py", line 69, in main
loop.run_until_complete(run())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "./main.py", line 29, in run
async with ble.SMPClientBLE(name="msa-CFB1DD08") as clnt:
File "/home/niklas/git/lohmega/python-mcumgr/ble.py", line 159, in aenter
await self.connect()
File "/home/niklas/git/lohmega/python-mcumgr/ble.py", line 175, in connect
paired = await self._clnt.pair()
File "/home/niklas/.local/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 270, in pair
is_paired = await self._bus.callRemote(
AttributeError: 'NoneType' object has no attribute 'callRemote'
Metadata
Metadata
Assignees
Labels
No labels