mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 23:52:28 +01:00
[esp32_ble] Automatically disable unused GATT functionality to save RAM
This commit is contained in:
@@ -131,8 +131,12 @@ class ESP32BLE : public Component {
|
||||
void set_enable_on_boot(bool enable_on_boot) { this->enable_on_boot_ = enable_on_boot; }
|
||||
|
||||
protected:
|
||||
#ifdef USE_ESP32_BLE_SERVER
|
||||
static void gatts_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param);
|
||||
#endif
|
||||
#ifdef USE_ESP32_BLE_CLIENT
|
||||
static void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param);
|
||||
#endif
|
||||
static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param);
|
||||
|
||||
bool ble_setup_();
|
||||
|
Reference in New Issue
Block a user