Hello all,
I am developing a BLE application with the Softdevices, the peer management module, and with MITM protection.
I've set a bonding static passkey as shown here:
static uint8_t static_passkey[] = STATIC_PASSKEY;
static ble_opt_t m_static_pin_option;
...
m_static_pin_option.gap_opt.passkey.p_passkey = static_passkey;
err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &m_static_pin_option);
APP_ERROR_CHECK(err_code);
I want to set a general static passkey to be used for maintenance people, such as an admin bonding passkey, and other passkey for the final user ( could be randomly generated or static) .
Is there a way to implement this? Can I change the static_passkey for an array of passkeys?
thanks in advance.