File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
# In a terminal window run, `platformio run -t menuconfig'
5
5
# Remember to delete the generated `sdkconfig.xxx` files and rebuild.
6
6
7
+ ## TODO [2023-01-08]: https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/esp32c3/sdkconfig
7
8
CONFIG_BT_ENABLED=y
8
9
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
9
10
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
10
11
CONFIG_BTDM_CTRL_MODE_BTDM=n
12
+ # CONFIG_BT_BLE_ENABLED=y -- esp32c3, esp32s3
11
13
# CONFIG_BT_BLE_50_FEATURES_SUPPORTED=y
12
14
## CONFIG_BLUEDROID_ENABLED=1
Original file line number Diff line number Diff line change 24
24
* @brief BLEDescriptor constructor.
25
25
*/
26
26
BLEDescriptor::BLEDescriptor (const char * uuid, uint16_t len) : BLEDescriptor(BLEUUID(uuid), len) {
27
- }
27
+ }
28
28
29
29
/* *
30
30
* @brief BLEDescriptor constructor.
31
31
*/
32
32
BLEDescriptor::BLEDescriptor (BLEUUID uuid, uint16_t max_len) {
33
33
m_bleUUID = uuid;
34
34
m_value.attr_len = 0 ; // Initial length is 0.
35
- m_value.attr_max_len = max_len; // Maximum length of the data.
35
+ m_value.attr_max_len = max_len; // Maximum length of the data.
36
36
m_handle = NULL_HANDLE; // Handle is initially unknown.
37
37
m_pCharacteristic = nullptr ; // No initial characteristic.
38
38
m_pCallback = nullptr ; // No initial callback.
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ class BLEServerCallbacks {
134
134
* @param [in] pServer A reference to the %BLE server that received the existing client disconnection.
135
135
*/
136
136
virtual void onDisconnect (BLEServer* pServer);
137
+ virtual void onDisconnect (BLEServer* pServer, esp_ble_gatts_cb_param_t *param);
137
138
138
139
/* *
139
140
* @brief Handle a new client connection.
You can’t perform that action at this time.
0 commit comments