Skip to content

Blue Tooth Connection #124

@JaeYoungLee79

Description

@JaeYoungLee79

Dear Sir


(base) C:\Users\eojin>C:/Users/eojin/anaconda3/python.exe e:/pylgbst-master/examples/demo.py
44 INFO root Trying get_connection_bluepy
48 INFO root Trying get_connection_bluegiga
120 INFO pygatt.backends.bgapi.bgapi Initialized new BGAPI backend
121 INFO pygatt.backends.bgapi.bgapi Auto-detecting serial port for BLED112
146 INFO root Trying get_connection_gatt
185 INFO root Trying get_connection_bleak
270 INFO comms-bleak Discovering devices... Press green button on Hub
C:\Users\eojin\anaconda3\lib\site-packages\pylgbst\comms\cbleak.py:142: FutureWarning: The discover function will removed in
a future version, use BleakScanner.discover instead.
devices = await discover(timeout=1)
11019 WARNING hub Got only these devices: (None, None, None, None, None, None, None)
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Users\eojin\anaconda3\lib\threading.py", line 973, in _bootstrap_inner
self.run()
File "C:\Users\eojin\anaconda3\lib\threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\eojin\anaconda3\lib\site-packages\pylgbst\comms\cbleak.py", line 50, in
self._connection_thread = threading.Thread(target=lambda: asyncio.run(self._bleak_thread()))
File "C:\Users\eojin\anaconda3\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\eojin\anaconda3\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "C:\Users\eojin\anaconda3\lib\site-packages\pylgbst\comms\cbleak.py", line 60, in _bleak_thread
await bleak.connect(self.hub_mac, self.hub_name)
File "C:\Users\eojin\anaconda3\lib\site-packages\pylgbst\comms\cbleak.py", line 157, in connect
raise ConnectionError('Device not found.')
ConnectionError: Device not found.

How do I do?
Or before starting your example.
How to check connection?

Thanks
Best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions