mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
add gap_set_local_name and mark local_name as const
This commit is contained in:
parent
20e1c31c98
commit
8e618f72c9
@ -97,6 +97,12 @@ gap_security_level_t gap_security_level(hci_con_handle_t con_handle);
|
||||
void gap_request_security_level(hci_con_handle_t con_handle, gap_security_level_t level);
|
||||
int gap_mitm_protection_required_for_security_level(gap_security_level_t level);
|
||||
|
||||
/** @brief sets local name
|
||||
* @note has to be done before stack starts up
|
||||
* @param name is not copied, make sure memory is accessible during stack startup
|
||||
*/
|
||||
void gap_set_local_name(const char * local_name);
|
||||
|
||||
#if defined __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -2004,3 +2004,9 @@ int gap_dedicated_bonding(bd_addr_t device, int mitm_protection_required){
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void gap_set_local_name(const char * local_name){
|
||||
hci_stack->local_name = local_name;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user