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
15421542 return false ;
15431543}
15441544
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+
15451554bool GattServer::is_update_authorized (
15461555 connection_handle_t connection,
15471556 GattAttribute::Handle_t value_handle
Original file line number Diff line number Diff line change @@ -293,6 +293,8 @@ class GattServer : public PalSigningMonitor {
293293
294294 bool get_cccd_index_by_value_handle (GattAttribute::Handle_t char_handle, uint8_t &idx) const ;
295295
296+ bool get_value_handle_by_cccd_handle (GattAttribute::Handle_t cccd_handle, GattAttribute::Handle_t &char_handle) const ;
297+
296298 bool is_update_authorized (connection_handle_t connection, GattAttribute::Handle_t value_handle);
297299
298300 struct alloc_block_t {
You can’t perform that action at this time.
0 commit comments