Hello,
We are using a passkey in our application and by default is 6 digits long. I have found in other posts that this is mandatory a cannot be changed.
Is it real?
the strange thing is that both iOS and Android suggest a 4 digit PIN by default when trying to pair with our device. Therefore my client is a bit annoyed that the APP suggest a 4 digits pin and he has to put a 6 digits instead.
here the snippet of the code I am using:
#define BLE_DEFAULT_PASSKEY "000000"
//set defaul passkey
uint8_t passkey[] = BLE_DEFAULT_PASSKEY;
ble_opt_t ble_opt;
ble_opt.gap_opt.passkey.p_passkey = passkey;
err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &ble_opt);
APP_ERROR_CHECK(err_code);
Thanks and Regards!