|
Hi, |
Replies: 3 comments 4 replies
This is a limitation of the stack unfortunately. You cannot change the state of the GATT server while there are any open connections.
This happens because the stack is waiting for you to return from the callback and is stuck until you do. The call to read is queued but until you return it cannot be processed. So options are limited, the best you might do is read from the GoPro at regular intervals and respond with the latest data when your server is read from. |
|
I'm trying something similar - replaying BLE packets remotely at the frame level (unidirectional is ok for a start) it is possible if clunky with advertisments - set adv data, start advertising, stop, repeat however I feel I am using the wrong API - too high level if you will I guess the better approach would be to use a frame-level API if there is such a thing, without any of the stack's state management what I'd be looking for is the transmit equivalent of nRF Sniffer use case is remote development for a very-hard-to-move BLE sensor installation: a level sensor in a huge tank thankful for any hints, Michael |
|
I was able to create a working repeater. GoPro_BLE_Repeater Thanks again for your support! |
This is a limitation of the stack unfortunately. You cannot change the state of the GATT server while there are any open connections.
This happens because the stack is waiting for you to return from the callback and is stuck until you do. The call …