DefaultBluetoothServer
The default implementation of BluetoothServer. It makes the Hardware advertise AdvertiseData and exposes LocalService to connect to.
Properties
A StateFlow indicating whether this server is currently advertising
A StateFlow of the LocalServices that are currently discoverable
A StateFlow of the ServerStatus of this Server
Functions
Attempts to add a LocalService at a given UUID and suspends until it has been added.
Closes this BluetoothServer After this method has been called the Server will no longer be available. Any subsequent calls to advertise, add, remove, or removeAllServices will fail.
Attempts to remove a LocalService and suspends until it has been removed.
Attempts to remove all LocalService and suspends until they have been removed.
Stops advertising any AdvertiseData