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

How to swich to Video mode via ble #514

Closed
pavlosharhan2 opened this issue Apr 11, 2024 · 2 comments
Closed

How to swich to Video mode via ble #514

pavlosharhan2 opened this issue Apr 11, 2024 · 2 comments
Labels
question A discussion / question. Not sure if bug or enhancement.

Comments

@pavlosharhan2
Copy link

pavlosharhan2 commented Apr 11, 2024

When recording videos, sometimes user occasionally presses the side button on the camera and it switches the mode to Photo or Timelapse.

I've been using /gp/gpControl/settings/144/12 command for a long time, but now I've focused my software on bluetooth API.
Is there any alternative to this legacy wifi command in Bluetooth API?

Tried to send this: 0x03U, 0x90U, 0x01U, 0x0CU to 0074(Settings) characteristic, but It doesn't work.

From the doc , I see only the ways to load specific presets, but I need It to do the same thing like when we press the side button

Thank you in ad

@pavlosharhan2 pavlosharhan2 added the enhancement New feature or request label Apr 11, 2024
@github-actions github-actions bot added the triage Needs to be reviewed and assigned label Apr 11, 2024
@tcamise-gpsw
Copy link
Collaborator

Hello. The closest way to approximate the mode button functionality in the Open GoPro API is with the "Load Preset Group" API. This is available via HTTP and BLE.

@tcamise-gpsw tcamise-gpsw added question A discussion / question. Not sure if bug or enhancement. and removed enhancement New feature or request triage Needs to be reviewed and assigned labels Apr 11, 2024
@pavlosharhan2
Copy link
Author

pavlosharhan2 commented Apr 11, 2024

Thank you !
this one worked

val setSettingCmd = ubyteArrayOf(0x04U, // total number of bytes in the query
0x3EU, // command id ( load preset)
0x02U, // preset id value size (4 bytes)
0x03U, 0xE8U) // 1000 as uint16
sent to 0074 characteristic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A discussion / question. Not sure if bug or enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants