Module profile

Source
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 connect parameters. Returns an ObexClient 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.