Now setting a default passkey when starting the BLE service/server
This commit is contained in:
parent
166581caeb
commit
0f376fd528
@ -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));
|
gadget_bridge_parser_register_event_callback(&(parser_event_cb));
|
||||||
ble_service_register_nus_data_rx_cb(&(nus_data_rx_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)
|
else if(strcmp(argv[1], "disable") == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user