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

One time connect and need restart system #501

Closed
isdito opened this issue Mar 27, 2024 · 1 comment
Closed

One time connect and need restart system #501

isdito opened this issue Mar 27, 2024 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists python sdk Python SDK

Comments

@isdito
Copy link

isdito commented Mar 27, 2024

Hello,

It connects fine the first time when restart computer, but if it disconnects it gives me this error and I can no longer connect if I don't close and open the computer.

1.- I turn on the go pro 11 and windows 11
2.- I enable wirelles
3.- I enter the gopro mobile App and connect with gopro and see the preview, to enable wiffy in the go pro
4.- I connect to the computer and it is established
5.- I put the gopro back in the App --> gopro link
6.- I start the python code

File "C:\Python310\lib\concurrent\futures\_base.py", line 445, in result

    return self.__get_result()
  File "C:\Python310\lib\concurrent\futures\_base.py", line 390, in __get_result
    raise self._exception
  File "C:\Python310\lib\site-packages\open_gopro\ble\adapters\bleak_wrapper.py", line 418, in _async_discover_chars
    value=await handle.read_gatt_descriptor(descriptor.handle),
  File "C:\Python310\lib\site-packages\bleak\__init__.py", line 680, in read_gatt_descriptor
    return await self._backend.read_gatt_descriptor(handle, **kwargs)
  File "C:\Python310\lib\site-packages\bleak\backends\winrt\client.py", line 763, in read_gatt_descriptor
    await descriptor.obj.read_value_async(
OSError: [WinError -2147023673] The operation was canceled by the user

reggards

@isdito isdito added the bug Something isn't working label Mar 27, 2024
@github-actions github-actions bot added the triage Needs to be reviewed and assigned label Mar 27, 2024
@tcamise-gpsw
Copy link
Collaborator

Hello. Yes, it is a known issue that the Python SDK is not robust for dropped / failed connections. I'm not sure this is even solvable in the SDK due to the lack of robustness around this topic in both Bleak and the OS's Bluetooth stacks.

In any case, I'm using the above ticket to track this work so will close this as duplicate.

@tcamise-gpsw tcamise-gpsw closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2024
@tcamise-gpsw tcamise-gpsw added duplicate This issue or pull request already exists demos Relating to demos (not SDKs) and removed triage Needs to be reviewed and assigned labels Apr 10, 2024
@tcamise-gpsw tcamise-gpsw added python sdk Python SDK and removed demos Relating to demos (not SDKs) labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists python sdk Python SDK
Projects
Status: Done
Development

No branches or pull requests

2 participants