Skip to main content

set_le_security

Function set_le_security 

Source
pub fn set_le_security(fd: c_int, encryption_required: bool) -> Result<(), i32>
Expand description

The security an LE L2CAP socket demands of its link: BT_SECURITY_MEDIUM (an encrypted link: the central pairs or uses its bond before the channel opens) or BT_SECURITY_LOW (none, the kernel’s default).