mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-21 13:21:05 +00:00
test random static address
This commit is contained in:
parent
4cb818d835
commit
2cf808bf2f
@ -120,8 +120,8 @@ static void sm_pairing_central_setup(void){
|
||||
*/
|
||||
|
||||
// LE Legacy Pairing, Just Works
|
||||
// sm_set_io_capabilities(IO_CAPABILITY_DISPLAY_YES_NO);
|
||||
// sm_set_authentication_requirements(0);
|
||||
sm_set_io_capabilities(IO_CAPABILITY_NO_INPUT_NO_OUTPUT);
|
||||
sm_set_authentication_requirements(SM_AUTHREQ_BONDING);
|
||||
|
||||
// LE Legacy Pairing, Passkey entry initiator enter, responder (us) displays
|
||||
// sm_set_io_capabilities(IO_CAPABILITY_DISPLAY_ONLY);
|
||||
|
@ -111,6 +111,9 @@ static void sm_peripheral_setup(void){
|
||||
// register for ATT
|
||||
att_server_register_packet_handler(packet_handler);
|
||||
|
||||
bd_addr_t addr;
|
||||
sscanf_bd_addr("DB:A6:C5:71:47:FA", addr);
|
||||
gap_random_address_set(addr);
|
||||
|
||||
// Configuration
|
||||
|
||||
@ -126,8 +129,8 @@ static void sm_peripheral_setup(void){
|
||||
*/
|
||||
|
||||
// LE Legacy Pairing, Just Works
|
||||
// sm_set_io_capabilities(IO_CAPABILITY_NO_INPUT_NO_OUTPUT);
|
||||
// sm_set_authentication_requirements(0);
|
||||
sm_set_io_capabilities(IO_CAPABILITY_NO_INPUT_NO_OUTPUT);
|
||||
sm_set_authentication_requirements(SM_AUTHREQ_BONDING);
|
||||
|
||||
// LE Legacy Pairing, Passkey entry initiator enter, responder (us) displays
|
||||
// sm_set_io_capabilities(IO_CAPABILITY_DISPLAY_ONLY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user