mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 06:35:20 +00:00
auto authorize connection
This commit is contained in:
parent
beedfc0222
commit
709e74be4c
@ -133,6 +133,12 @@ static void app_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SM_AUTHORIZATION_REQUEST: {
|
||||||
|
// auto-authorize connection if requested
|
||||||
|
sm_event_t * event = (sm_event_t *) packet;
|
||||||
|
sm_authorization_grant(event->addr_type, event->address);
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user