zephyr::raw

Function bt_id_delete

source
pub unsafe extern "C" fn bt_id_delete(id: u8) -> i32
Expand description

@brief Delete an identity.

When given a valid identity this function will disconnect any connections created using it, remove any pairing keys or other data associated with it, and then flag is as deleted, so that it can not be used for any operations. To take back into use the slot the identity was occupying the bt_id_reset() API needs to be used.

@note the default identity (BT_ID_DEFAULT) cannot be deleted, i.e. this API will return an error if asked to do that.

@param id Existing identity identifier.

@return 0 in case of success, or a negative error code on failure.