3#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED 
    7#include <esp_gap_ble_api.h> 
   17    .set_scan_rsp = 
false,
 
   18    .include_name = 
false,
 
   19    .include_txpower = 
true,
 
   22    .min_interval = 0x000C,
 
   23    .max_interval = 0x000C,
 
   25    .manufacturer_len = 0,
 
   26    .p_manufacturer_data = 
NULL,
 
   27    .service_data_len = 0,
 
   28    .p_service_data = 
NULL,
 
   30    .service_uuid_len = 0,
 
   31    .p_service_uuid = 
NULL,
 
   39    .include_txpower = 
false,
 
   41    .min_interval = 0x0000,
 
   42    .max_interval = 0x0000,
 
   44    .manufacturer_len = 0,
 
   45    .p_manufacturer_data = 
NULL,
 
   46    .service_data_len = 0,
 
   47    .p_service_data = 
NULL,
 
   48    .service_uuid_len = 0,
 
   49    .p_service_uuid = 
NULL,
 
   69    ESP_LOGI(
"MIDIBLE", 
"advertising_set_service_uuid");
 
   86    ESP_LOGI(
"MIDIBLE", 
"advertising_config");
 
   89        ESP_LOGE(
"MIDIBLE", 
"config adv data failed, error code = %x", 
ret);
 
   95        ESP_LOGE(
"MIDIBLE", 
"config adv rsp data failed, error code = %x", 
ret);
 
  104        ESP_LOGE(
"MIDIBLE", 
"esp_ble_gap_config_adv_data failed: %d",
 
  105                 param->adv_data_cmpl.status);
 
  120        ESP_LOGE(
"MIDIBLE", 
"esp_ble_gap_config_adv_data response failed: %d",
 
  121                 param->scan_rsp_data_cmpl.status);
 
Advertising the MIDI service for Bluetooth Low Energy.
 
void advertising_set_service_uuid(const uint8_t uuid[], uint16_t length)
Set the UUID of the service to be advertised.
 
void advertising_get_connection_interval(uint16_t *itvl_min, uint16_t *itvl_max)
Get the connection interval range from the advertising data.
 
void advertising_start(void)
Start advertising, after already being configured.
 
void advertising_set_connection_interval(uint16_t itvl_min, uint16_t itvl_max)
Set the connection interval range in the advertising data.
 
bool advertising_handle_config_complete_event(esp_ble_gap_cb_param_t *param)
Callback that indicates that the configuration of the advertising data was complete.
 
bool advertising_config(void)
Configure the advertising data, register with the Bluetooth driver.
 
bool advertising_handle_config_response_complete_event(esp_ble_gap_cb_param_t *param)
Callback that indicates that the configuration of the advertising response data was complete.
 
Array< T, N > copyAs(const Array< U, N > &src)
Copy an Array to an Array of a different type.