mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
track authorization result
This commit is contained in:
parent
709e74be4c
commit
1ce7a558b1
@ -141,6 +141,15 @@ static void att_event_packet_handler (uint8_t packet_type, uint16_t channel, uin
|
|||||||
att_ir_central_device_db_index = -1;
|
att_ir_central_device_db_index = -1;
|
||||||
att_run();
|
att_run();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SM_AUTHORIZATION_RESULT: {
|
||||||
|
sm_event_t * event = (sm_event_t *) packet;
|
||||||
|
if (event->addr_type != att_client_addr_type) break;
|
||||||
|
if (memcmp(event->address, att_client_address, 6) != 0) break;
|
||||||
|
att_connection.authenticated = event->authorization_result;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user