This is supported on crate feature
rfcomm
only.Expand description
Radio frequency communication (RFCOMM) sockets and profiles.
There are two ways to establish an RFCOMM connection:
- Use a Listener and Stream. This requires knowledge of the channel number and will not register or use any SDP records.
- 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.
ConnectRequest
bluetoothd
A request to connect to this profile, either as client or server.
Profile
bluetoothd
Bluetooth RFCOMM profile definition.
ProfileHandle
bluetoothd
Handle to registered Bluetooth RFCOMM profile receiving its connect requests.
RFCOMM socket security.
An RFCOMM socket address.
An RFCOMM stream between a local and remote socket (sequenced, reliable, two-way, connection-based).
Enums
ReqError
bluetoothd
Error response from us to a Bluetooth profile request.
Role
bluetoothd
Local profile role.
RFCOMM socket security level.
Type Definitions
ReqResult
bluetoothd
Result of a Bluetooth profile request to us.