Skip to content

Python SDK: BLE connection establishment process sometimes hangs #710

@Brumbay

Description

@Brumbay

Hello! Using Hero 12 here.

Component
Python sdk often fails.

When trying to get a WirelessGoPro, an error "Error closing wifi: TimeoutError" is given.
The camera then tries to reconnect over and over again: enables notifications but then doesn't do anything.

To Reproduce
Steps to reproduce the behavior:

  1. Run either a script (log_battery.py) or a cli command (gopro-photo)
  2. See error:
    ERROR 13:24:01.163 Error while opening: gopro_wireless.py:324
    INFO 13:24:01.301 gopro_wireless.py:728
    <<<<<<<<--------------
    "id" : "CmdId.SET_WIFI",
    "protocol" : "Protocol.BLE",
    "uuid" : "Command",
    "enable" : "False",
    <<<<<<<<--------------

INFO 13:24:01.491 gopro_wireless.py:668
----ASYNC----->>>>>>>>
"id" : "CmdId.SET_WIFI",
"status" : "ErrorCode.SUCCESS",
"protocol" : "Protocol.BLE",
----ASYNC----->>>>>>>>

WARNING 13:24:06.506 Error closing wifi: TimeoutError()

Expected behavior
The camera should connect.

Screenshots
Image

Image

Hardware

  • Camera: Hero12
  • Desktop if applicable: Windows 11

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpython sdkPython SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions