File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
connectivity/FEATURE_BLE/source/cordio/source Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1542,6 +1542,15 @@ bool GattServer::get_cccd_index_by_value_handle(GattAttribute::Handle_t char_han
1542
1542
return false ;
1543
1543
}
1544
1544
1545
+ bool GattServer::get_value_handle_by_cccd_handle (GattAttribute::Handle_t cccd_handle, GattAttribute::Handle_t &char_handle) const {
1546
+ uint8_t idx;
1547
+ if (!get_cccd_index_by_cccd_handle (cccd_handle, idx)) {
1548
+ return false ;
1549
+ }
1550
+ char_handle = cccd_handles[idx];
1551
+ return true ;
1552
+ }
1553
+
1545
1554
bool GattServer::is_update_authorized (
1546
1555
connection_handle_t connection,
1547
1556
GattAttribute::Handle_t value_handle
Original file line number Diff line number Diff line change @@ -293,6 +293,8 @@ class GattServer : public PalSigningMonitor {
293
293
294
294
bool get_cccd_index_by_value_handle (GattAttribute::Handle_t char_handle, uint8_t &idx) const ;
295
295
296
+ bool get_value_handle_by_cccd_handle (GattAttribute::Handle_t cccd_handle, GattAttribute::Handle_t &char_handle) const ;
297
+
296
298
bool is_update_authorized (connection_handle_t connection, GattAttribute::Handle_t value_handle);
297
299
298
300
struct alloc_block_t {
You can’t perform that action at this time.
0 commit comments