Module bluer::rfcomm

source ·
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§

Structs§

  • RFCOMM socket connection information.
  • A request to connect to this profile, either as client or server.
  • Invalid RFCOMM socket address error.
  • An RFCOMM socket server, listening for Stream connections.
  • Bluetooth RFCOMM profile definition.
  • 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§

  • Error response from us to a Bluetooth profile request.
  • Local profile role.
  • RFCOMM socket security level.

Type Aliases§

  • Result of a Bluetooth profile request to us.