14 #include <esp_gap_ble_api.h> 15 #include <esp_gatts_api.h> 16 #include <esp_gattc_api.h> 38 virtual void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) = 0;
43 virtual void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
44 esp_ble_gattc_cb_param_t *param) = 0;
49 virtual void gatts_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if,
50 esp_ble_gatts_cb_param_t *param) = 0;
57 void setup()
override;
59 void dump_config()
override;
60 float get_setup_priority()
const override;
69 static void gatts_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param);
70 static void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param);
71 static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param);
73 void real_gatts_event_handler_(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param);
74 void real_gattc_event_handler_(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param);
75 void real_gap_event_handler_(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param);
85 esp_ble_io_cap_t io_cap_{ESP_IO_CAP_NONE};
virtual void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param)=0
std::vector< GAPEventHandler * > gap_event_handlers_
std::vector< GATTcEventHandler * > gattc_event_handlers_
Queue< BLEEvent > ble_events_
std::vector< GATTsEventHandler * > gatts_event_handlers_
void register_gatts_event_handler(GATTsEventHandler *handler)
BLEAdvertising * get_advertising()
void register_gap_event_handler(GAPEventHandler *handler)
void set_io_capability(IoCapability io_capability)
void register_gattc_event_handler(GATTcEventHandler *handler)
BLEAdvertising * advertising_