Expand description
Helpers for interacting with the fuchsia.bluetooth.bredr.Profile
resource.
Constants§
- GOEP_
L2CAP_ PSM_ ATTRIBUTE - The Attribute ID associated with the GoepL2capPsm attribute. Defined in https://www.bluetooth.com/specifications/assigned-numbers/service-discovery
Functions§
- connect_
to_ obex_ service - Attempt to connect to the peer
id
with the provided connectparameters
. Returns anObexClient
connected to the remote OBEX service on success, or an Error if the connection could not be made. - goep_
l2cap_ psm_ attribute - Returns the GoepL2capPsm attribute for the provided
psm
. - is_
obex_ protocol - Returns true if the provided
protocol
is OBEX. - obex_
protocol_ l2cap - Returns the protocol for an OBEX service for the provided L2CAP
psm
. - obex_
protocol_ rfcomm - Returns the protocol for an OBEX service for the provided RFCOMM
channel
number. - parse_
obex_ search_ result - Attempt to parse an OBEX service advertisement into
ConnectParameters
containing the L2CAP PSM or RFCOMM ServerChannel associated with the service. Returns the parameters on success, None if the parsing fails.