Available on crate feature rfcomm only.
Expand description

Radio frequency communication (RFCOMM) sockets and profiles.

There are two ways to establish an RFCOMM connection:

  1. Use a Listener and Stream. This requires knowledge of the channel number and will not register or use any SDP records.
  2. Register a Profile and listen to connect requests using the ProfileHandle. This will register and discover SDP records and connect using automatically discovered channel numbers. You will probably need to register an authorization agent for this to succeed. This requires a running Bluetooth daemon.

Modules

Stream utility types.

Structs

RFCOMM socket connection information.

ConnectRequestbluetoothd

A request to connect to this profile, either as client or server.

An RFCOMM socket server, listening for Stream connections.

Profilebluetoothd

Bluetooth RFCOMM profile definition.

ProfileHandlebluetoothd

Handle to registered Bluetooth RFCOMM profile receiving its connect requests.

RFCOMM socket security.

An RFCOMM socket that has not yet been converted to a Listener or Stream.

An RFCOMM socket address.

An RFCOMM stream between a local and remote socket (sequenced, reliable, two-way, connection-based).

Enums

ReqErrorbluetoothd

Error response from us to a Bluetooth profile request.

Rolebluetoothd

Local profile role.

RFCOMM socket security level.

Type Definitions

ReqResultbluetoothd

Result of a Bluetooth profile request to us.