Interface IBluetoothAdapter
Represents a Bluetooth adapter.
Assembly: Meadow.Contracts.dll
View Source
public interface IBluetoothAdapter
Methods
StartBluetoothServer(IDefinition)
Starts the Bluetooth server with the specified configuration.
View Source
bool StartBluetoothServer(IDefinition configuration)
Returns
System.Boolean: true if the Bluetooth server is successfully started; otherwise, false.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Gateways.Bluetooth.IDefinition | configuration | The Bluetooth definition configuration. |
StopBluetoothServer()
Stop the Bluetooth server.
View Source
bool StopBluetoothServer()
Returns
System.Boolean: true if the Bluetooth server is successfully stopped; otherwise, false.
Events
ServerStarting
Occurs when the Bluetooth server is beginning to start.
View Source
event EventHandler? ServerStarting
Event Type
System.EventHandler
ServerStarted
Occurs when the Bluetooth server has successfully started and is ready to accept connections.
View Source
event EventHandler? ServerStarted
Event Type
System.EventHandler
ServerStopping
Occurs when the Bluetooth server is beginning to stop.
View Source
event EventHandler? ServerStopping
Event Type
System.EventHandler
ServerStopped
Occurs when the Bluetooth server has successfully stopped.
View Source
event EventHandler? ServerStopped
Event Type
System.EventHandler
ClientConnected
Occurs when a client has successfully connected to the Bluetooth server.
View Source
event EventHandler? ClientConnected
Event Type
System.EventHandler
ClientDisconnected
Occurs when a client has disconnected from the Bluetooth server.
View Source
event EventHandler? ClientDisconnected
Event Type
System.EventHandler