13 static const char *
const TAG =
"esp32_ble";
28 this->
advertising_data_.flag = (ESP_BLE_ADV_FLAG_GEN_DISC | ESP_BLE_ADV_FLAG_BREDR_NOT_SPT);
69 if (num_services == 0) {
76 for (
int i = 0; i < num_services; i++) {
90 ESP_LOGE(TAG,
"esp_ble_gap_config_adv_data failed (Advertising): %d", err);
104 ESP_LOGE(TAG,
"esp_ble_gap_config_adv_data failed (Scan response): %d", err);
116 ESP_LOGE(TAG,
"esp_ble_gap_start_advertising failed: %d", err);
122 esp_err_t err = esp_ble_gap_stop_advertising();
124 ESP_LOGE(TAG,
"esp_ble_gap_stop_advertising failed: %d", err);
void set_service_data(const std::vector< uint8_t > &data)
esp_ble_adv_params_t advertising_params_
void set_manufacturer_data(const std::vector< uint8_t > &data)
esp_ble_adv_data_t advertising_data_
void remove_service_uuid(ESPBTUUID uuid)
esp_ble_adv_data_t scan_response_data_
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
void add_service_uuid(ESPBTUUID uuid)
std::vector< ESPBTUUID > advertising_uuids_
ESPBTUUID as_128bit() const
esp_bt_uuid_t get_uuid() const