Now setting a default passkey when starting the BLE service/server

This commit is contained in:
anschrammh 2023-04-18 23:10:24 +02:00
parent 166581caeb
commit 0f376fd528

View File

@ -667,6 +667,7 @@ int _bluetooth(const shell_cmd_t *pcmd, int argc, char *const argv[])
{
gadget_bridge_parser_register_event_callback(&(parser_event_cb));
ble_service_register_nus_data_rx_cb(&(nus_data_rx_cb));
ble_service_set_pairing_passkey(123456);
}
}
else if(strcmp(argv[1], "disable") == 0)