channel_number_from_protocol

Function channel_number_from_protocol 

Source
pub fn channel_number_from_protocol(
    protocol: &Vec<ProtocolDescriptor>,
) -> Result<i32, Error>
Expand description

Returns the RFCOMM or L2CAP channel number from the provided protocol. Returns an Error if the protocol is not a valid L2CAP or RFCOMM service.