Hi,
1. I modified a pairing and binding example, requiring the input of a fixed pairing and binding password 123456. When I tested it, I found that it took about 1 minute before the pairing was successful
2. What parameter causes the 1-minute wait for pairing and binding?
3.The key changes are as follows:
static void device_manager_init(void)
{
uint8_t passkey[] = DEFAULT_PASS_KEY;
ble_opt_t m_static_pin_option;
m_static_pin_option.gap_opt.passkey.p_passkey= passkey;
uint32_t err_code=sd_ble_opt_set(BLE_GAP_OPT_PASSKEY,&m_static_pin_option);
APP_ERROR_CHECK(err_code);
}
Example code is as follows:
Thank you for all your assistance.
Kind regards,
Peter.Min