mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-04 10:14:18 +00:00
mesh: define API for regular advvertisements
This commit is contained in:
parent
9ca723fbc2
commit
902f0ad1a2
@ -41,6 +41,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include "btstack_defines.h"
|
||||
#include "bluetooth.h"
|
||||
|
||||
#if defined __cplusplus
|
||||
extern "C" {
|
||||
@ -51,6 +52,41 @@ extern "C" {
|
||||
*/
|
||||
void adv_bearer_init(void);
|
||||
|
||||
//
|
||||
// Mirror gap.h advertisement API for use with ADV Bearer
|
||||
//
|
||||
// Advertisements are interleaved with ADV Bearer Messages
|
||||
|
||||
/**
|
||||
* Set Advertisement Data
|
||||
*
|
||||
* @param advertising_data_length
|
||||
* @param advertising_data (max 31 octets)
|
||||
* @note data is not copied, pointer has to stay valid
|
||||
* @note '00:00:00:00:00:00' in advertising_data will be replaced with actual bd addr
|
||||
*/
|
||||
void adv_bearer_advertisment_set_data(uint8_t advertising_data_length, uint8_t * advertising_data);
|
||||
|
||||
/**
|
||||
* @brief Set Advertisement Paramters
|
||||
* @param adv_int_min
|
||||
* @param adv_int_max
|
||||
* @param adv_type
|
||||
* @param direct_address_type
|
||||
* @param direct_address
|
||||
* @param channel_map
|
||||
* @param filter_policy
|
||||
* @note own_address_type is used from gap_random_address_set_mode
|
||||
*/
|
||||
void adv_bearer_advertisements_set_params(uint16_t adv_int_min, uint16_t adv_int_max, uint8_t adv_type,
|
||||
uint8_t direct_address_typ, bd_addr_t direct_address, uint8_t channel_map, uint8_t filter_policy);
|
||||
|
||||
/**
|
||||
* @brief Enable/Disable Advertisements. OFF by default.
|
||||
* @param enabled
|
||||
*/
|
||||
void adv_bearer_advertisements_enable(int enabled);
|
||||
|
||||
/**
|
||||
* Register listener for particular message types: Mesh Message, Mesh Beacon, PB-ADV
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user