Hi,
I've just learned that even with enabled pairing, it's still possible to "simply" connect to the device. But is there a way to force pairing on connection?
I'm using the NUS service, S132 soft device, and SDK15.
Hi,
I've just learned that even with enabled pairing, it's still possible to "simply" connect to the device. But is there a way to force pairing on connection?
I'm using the NUS service, S132 soft device, and SDK15.
Hi,
You can change the security level on the characteristics to make pairing mandatory (i.e., you can still connect without pairing, but the central will not have read/write access). E.g.,
uint32_t ble_nus_init(ble_nus_t * p_nus, ble_nus_init_t const * p_nus_init)
{
..
//add_char_params.read_access = SEC_OPEN;
//add_char_params.write_access = SEC_OPEN;
add_char_params.read_access = SEC_JUST_WORKS;
add_char_params.write_access = SEC_JUST_WORKS;
...Works well, thank you very much!
Works well, thank you very much!