File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 24
24
#include " ble/gatt/GattAttribute.h"
25
25
#include " ble/gatt/GattCallbackParamTypes.h"
26
26
27
+ // Forward declare ble::impl::GattServer
28
+ namespace ble {
29
+
30
+ #if !defined(DOXYGEN_ONLY)
31
+ namespace impl {
32
+ class GattServer ;
33
+ }
34
+ #endif // !defined(DOXYGEN_ONLY)
35
+ }
36
+
27
37
/* *
28
38
* @addtogroup ble
29
39
* @{
@@ -1774,18 +1784,19 @@ class GattCharacteristic {
1774
1784
return _descriptors[index];
1775
1785
}
1776
1786
1787
+ private:
1788
+
1789
+ friend ble::impl::GattServer;
1790
+
1777
1791
/* *
1778
1792
* Sets this GattCharacteristic's implicitly-created CCCD, if
1779
1793
* applicable.
1780
1794
*
1781
1795
* @note once this is called, the pointed-to GattAttribute
1782
1796
* is owned by this GattCharacteristic and will be deleted
1783
1797
* during this object's destructor
1784
- *
1785
- * @note this is an internal function and should not be called
1786
- * by the application
1787
1798
*/
1788
- void _setImplicitCCCD (GattAttribute *implicit_cccd) {
1799
+ void setImplicitCCCD (GattAttribute *implicit_cccd) {
1789
1800
_implicit_cccd = implicit_cccd;
1790
1801
}
1791
1802
Original file line number Diff line number Diff line change @@ -603,7 +603,7 @@ ble_error_t GattServer::insert_cccd(
603
603
implicit_cccd->setHandle (cccds[cccd_cnt].handle );
604
604
implicit_cccd->allowRead (true );
605
605
implicit_cccd->allowWrite (true );
606
- characteristic->_setImplicitCCCD (implicit_cccd);
606
+ characteristic->setImplicitCCCD (implicit_cccd);
607
607
608
608
cccd_cnt++;
609
609
attribute_it++;
You can’t perform that action at this time.
0 commit comments