Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Functions
advertising.h File Reference

Detailed Description

Advertising the MIDI service for Bluetooth Low Energy.

Definition in file advertising.h.

#include <esp_gap_ble_api.h>
+ Include dependency graph for advertising.h:

Go to the source code of this file.

Functions

void advertising_set_service_uuid (const uint8_t uuid[], uint16_t length)
 Set the UUID of the service to be advertised.
 
void advertising_set_connection_interval (uint16_t itvl_min, uint16_t itvl_max)
 Set the connection interval range in the advertising data.
 
void advertising_get_connection_interval (uint16_t *itvl_min, uint16_t *itvl_max)
 Get the connection interval range from the advertising data.
 
bool advertising_config (void)
 Configure the advertising data, register with the Bluetooth driver.
 
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_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.
 
void advertising_start (void)
 Start advertising, after already being configured.
 

Function Documentation

◆ advertising_set_service_uuid()

void advertising_set_service_uuid ( const uint8_t uuid[],
uint16_t length )

Set the UUID of the service to be advertised.

Note
UUID should persist, captures pointer, doesn't copy data.

◆ advertising_set_connection_interval()

void advertising_set_connection_interval ( uint16_t itvl_min,
uint16_t itvl_max )

Set the connection interval range in the advertising data.

◆ advertising_get_connection_interval()

void advertising_get_connection_interval ( uint16_t * itvl_min,
uint16_t * itvl_max )

Get the connection interval range from the advertising data.

◆ advertising_config()

bool advertising_config ( void )

Configure the advertising data, register with the Bluetooth driver.

Will eventually trigger the callbacks to start advertising.

◆ advertising_handle_config_complete_event()

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.

Will start advertising if the configuration of the response data was complete as well.

◆ advertising_handle_config_response_complete_event()

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.

Will start advertising if the configuration of the advertising data was complete as well.

◆ advertising_start()

void advertising_start ( void )

Start advertising, after already being configured.