File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
connectivity/FEATURE_BLE/include/ble/gatt Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1579,6 +1579,17 @@ class GattCharacteristic {
1579
1579
writeAuthorizationCallback.attach (object, member);
1580
1580
}
1581
1581
1582
+ /* *
1583
+ * Return the callback registered to handle client's write.
1584
+ *
1585
+ * @return the callback that handles client's write requests.
1586
+ */
1587
+ const FunctionPointerWithContext<GattWriteAuthCallbackParams *>&
1588
+ getWriteAuthorizationCallback () const
1589
+ {
1590
+ return writeAuthorizationCallback;
1591
+ }
1592
+
1582
1593
/* *
1583
1594
* Register the read requests event handler.
1584
1595
*
@@ -1616,6 +1627,17 @@ class GattCharacteristic {
1616
1627
readAuthorizationCallback.attach (object, member);
1617
1628
}
1618
1629
1630
+ /* *
1631
+ * Return the callback registered to handle client's read.
1632
+ *
1633
+ * @return the callback that handles client's read requests.
1634
+ */
1635
+ const FunctionPointerWithContext<GattReadAuthCallbackParams *>&
1636
+ getReadAuthorizationCallback () const
1637
+ {
1638
+ return readAuthorizationCallback;
1639
+ }
1640
+
1619
1641
/* *
1620
1642
* Invoke the write authorization callback.
1621
1643
*
You can’t perform that action at this time.
0 commit comments