mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
sm_pairing examples: report pairing started event
This commit is contained in:
parent
38c89bb1b7
commit
7c4db9dc71
@ -280,6 +280,9 @@ static void sm_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *pa
|
||||
printf("Sending fixed passkey %"PRIu32"\n", (uint32_t) FIXED_PASSKEY);
|
||||
sm_passkey_input(sm_event_passkey_input_number_get_handle(packet), FIXED_PASSKEY);
|
||||
break;
|
||||
case SM_EVENT_PAIRING_STARTED:
|
||||
printf("Pairing started\n");
|
||||
break;
|
||||
case SM_EVENT_PAIRING_COMPLETE:
|
||||
switch (sm_event_pairing_complete_get_status(packet)){
|
||||
case ERROR_CODE_SUCCESS:
|
||||
|
@ -228,6 +228,9 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
||||
sm_event_identity_created_get_address(packet, addr);
|
||||
printf("Identity resolving failed\n");
|
||||
break;
|
||||
case SM_EVENT_PAIRING_STARTED:
|
||||
printf("Pairing started\n");
|
||||
break;
|
||||
case SM_EVENT_PAIRING_COMPLETE:
|
||||
switch (sm_event_pairing_complete_get_status(packet)){
|
||||
case ERROR_CODE_SUCCESS:
|
||||
|
Loading…
x
Reference in New Issue
Block a user