Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bleak.exc.BleakError: Could not get GATT services: Unreachable #54

Open
Jesper117 opened this issue Dec 27, 2024 · 1 comment
Open

bleak.exc.BleakError: Could not get GATT services: Unreachable #54

Jesper117 opened this issue Dec 27, 2024 · 1 comment

Comments

@Jesper117
Copy link

Command: app.py --address XX:XX:XX:XX:XX:XX --image true --set-image C:/Users/jespe/Desktop/meow.png --process-image 16

Output: 27.12.2024 16:17:26 :: INFO :: idotmatrix :: initialize app

Output: 27.12.2024 16:17:26 :: INFO :: idotmatrix.core.cmd :: initializing command line

27.12.2024 16:17:26 :: DEBUG :: idotmatrix.core.cmd :: using --address

Output: Traceback (most recent call last):

  File "C:\Users\jespe\Desktop\idotmatrix\python3-idotmatrix-client\app.py", line 48, in <module>

Output: main()

  File "C:\Users\jespe\Desktop\idotmatrix\python3-idotmatrix-client\app.py", line 40, in main
    asyncio.run(cmd.run(args))
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run

Output: return runner.run(main)

           ^^^^^^^^^^^^^^^^
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 684, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Users\jespe\Desktop\idotmatrix\python3-idotmatrix-client\core\cmd.py", line 252, in run
    await self.conn.connectByAddress(address)
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\site-packages\idotmatrix\connectionManager.py", line 47, in connectByAddress
    await self.connect()
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\site-packages\idotmatrix\connectionManager.py", line 63, in connect
    await self.client.connect()
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\site-packages\bleak\__init__.py", line 615, in connect

Output: return await self._backend.connect(**kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\site-packages\bleak\backends\winrt\client.py", line 487, in connect
    self.services = await self.get_services(
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\site-packages\bleak\backends\winrt\client.py", line 719, in get_services
    services = _ensure_success(
               ^^^^^^^^^^^^^^^^
  File "C:\Users\jespe\AppData\Local\Programs\Python\Python312\Lib\site-packages\bleak\backends\winrt\client.py", line 168, in _ensure_success

Output: raise BleakError(f"{fail_msg}: Unreachable")

bleak.exc.BleakError: Could not get GATT services: Unreachable

Hi, after connecting to my 16x16 display, attempting to change anything on the display results in these errors, with a connection icon flashing on the display.

@derkalle4
Copy link
Owner

Hi @Jesper117

this issue is related to the bluetooth library of python with the error message "bleak.exc.BleakError: Could not get GATT services: Unreachable". What display device do you have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants