C# Class Lego.Ev3.Phone.BluetoothCommunication

Communicate with the EV3 brick over Bluetooth.
Inheritance: ICommunication
Show file Open project: BrianPeek/legoev3 Class Usage Examples

Public Methods

Method 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

Method Description
PollInput ( object state ) : void

Method Details

BluetoothCommunication() public method

Create a new NetworkCommunication object
public BluetoothCommunication ( ) : System
return System

BluetoothCommunication() public method

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

ConnectAsync() public method

Connect to the EV3 brick.
public ConnectAsync ( ) : Task
return Task

Disconnect() public method

Disconnect from the EV3 brick.
public Disconnect ( ) : void
return void

WriteAsync() public method

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