mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-10 06:40:23 +00:00
Merge branch 'master' into ble-api-cleanup
This commit is contained in:
commit
7e2526228d
@ -2516,6 +2516,13 @@ void gap_random_address_set_update_period(int period_ms){
|
||||
gap_random_address_update_start();
|
||||
}
|
||||
|
||||
void gap_random_address_set(bd_addr_t addr){
|
||||
gap_random_address_set_mode(GAP_RANDOM_ADDRESS_TYPE_OFF);
|
||||
memcpy(sm_random_address, addr, 6);
|
||||
rau_state = RAU_SET_ADDRESS;
|
||||
sm_run();
|
||||
}
|
||||
|
||||
/*
|
||||
* @brief Set Advertisement Paramters
|
||||
* @param adv_int_min
|
||||
|
@ -154,6 +154,13 @@ gap_random_address_type_t gap_random_address_get_mode(void);
|
||||
*/
|
||||
void gap_random_address_set_update_period(int period_ms);
|
||||
|
||||
/**
|
||||
* @brief Sets a fixed random address for advertising
|
||||
* @param addr
|
||||
* @note Sets random address mode to type off
|
||||
*/
|
||||
void gap_random_address_set(bd_addr_t addr);
|
||||
|
||||
/**
|
||||
* @brief Updates the connection parameters for a given LE connection
|
||||
* @param handle
|
||||
|
Loading…
x
Reference in New Issue
Block a user