Skip to main content

Interface IBluetoothAdapter

Represents a Bluetooth adapter.

Assembly: Meadow.Contracts.dll​
View Source​
Declaration
public interface IBluetoothAdapter

Methods​

StartBluetoothServer(IDefinition)​

Starts the Bluetooth server with the specified configuration.

View Source​
Declaration
bool StartBluetoothServer(IDefinition configuration)
Returns​

System.Boolean: true if the Bluetooth server is successfully started; otherwise, false.

Parameters​
TypeNameDescription
Meadow.Gateways.Bluetooth.IDefinitionconfigurationThe Bluetooth definition configuration.

StopBluetoothServer()​

Stop the Bluetooth server.

View Source​
Declaration
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​
Declaration
event EventHandler? ServerStarting
Event Type​

System.EventHandler

ServerStarted​

Occurs when the Bluetooth server has successfully started and is ready to accept connections.

View Source​
Declaration
event EventHandler? ServerStarted
Event Type​

System.EventHandler

ServerStopping​

Occurs when the Bluetooth server is beginning to stop.

View Source​
Declaration
event EventHandler? ServerStopping
Event Type​

System.EventHandler

ServerStopped​

Occurs when the Bluetooth server has successfully stopped.

View Source​
Declaration
event EventHandler? ServerStopped
Event Type​

System.EventHandler

ClientConnected​

Occurs when a client has successfully connected to the Bluetooth server.

View Source​
Declaration
event EventHandler? ClientConnected
Event Type​

System.EventHandler

ClientDisconnected​

Occurs when a client has disconnected from the Bluetooth server.

View Source​
Declaration
event EventHandler? ClientDisconnected
Event Type​

System.EventHandler