Skip to content

BLE Repeater for GoPros #736

Answered by h2zero
sepp89117 asked this question in Q&A
Oct 30, 2024 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

I have already encountered several obstacles. The first problem is that I can't start services and the server's advertising when I've connected to a GoPro. Alternatively, I now start services and advertising in the setup before a GoPro is connected.

This is a limitation of the stack unfortunately. You cannot change the state of the GATT server while there are any open connections.

Now comes the second problem. In the code, I read the data from the GoPro (client) in the server callback onRead to forward it to the peer. Reading the GoPro characteristics leads to a deadlock.

This happens because the stack is waiting for you to return from the callback and is stuck until you do. The call …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@sepp89117
Comment options

Answer selected by sepp89117
Comment options

You must be logged in to vote
2 replies
@sepp89117
Comment options

@mhaberler
Comment options

Comment options

You must be logged in to vote
1 reply
@h2zero
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants