hello,
I am using SDK16 ble_app_gls example . I set static passkey with adding this code in ble_stack_init function.
uint8_t passkey[] = "123456"; ble_opt_t ble_opt; ble_opt.gap_opt.passkey.p_passkey = &passkey[0]; err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &ble_opt); APP_ERROR_CHECK(err_code);
When I write password "123456" I can connect on nrf connect app but if I write " 123456789" again I can connect . This should not be . How can I set length of passkey?
Can you help me?