C# Class Lego.Ev3.Phone.BluetoothCommunication

Communicate with the EV3 brick over Bluetooth.
Inheritance: ICommunication
Afficher le fichier Open project: BrianPeek/legoev3 Class Usage Examples

Méthodes publiques

Méthode Description
BluetoothCommunication ( ) : System

Create a new NetworkCommunication object

BluetoothCommunication ( string device ) : System

Create a new NetworkCommunication object

ConnectAsync ( ) : Task

Connect to the EV3 brick.

Disconnect ( ) : void

Disconnect from the EV3 brick.

WriteAsync ( byte data ) : Task

Write data to the EV3 brick.

Private Methods

Méthode Description
PollInput ( object state ) : void

Method Details

BluetoothCommunication() public méthode

Create a new NetworkCommunication object
public BluetoothCommunication ( ) : System
Résultat System

BluetoothCommunication() public méthode

Create a new NetworkCommunication object
public BluetoothCommunication ( string device ) : System
device string Devicename of the EV3 brick
Résultat System

ConnectAsync() public méthode

Connect to the EV3 brick.
public ConnectAsync ( ) : Task
Résultat Task

Disconnect() public méthode

Disconnect from the EV3 brick.
public Disconnect ( ) : void
Résultat void

WriteAsync() public méthode

Write data to the EV3 brick.
public WriteAsync ( byte data ) : Task
data byte Byte array to write to the EV3 brick.
Résultat Task