C# Class Lego.Ev3.Android.Desktop.NetworkCommunication

Communicate with EV3 brick over TCP
Inheritance: ICommunication
显示文件 Open project: BrianPeek/legoev3

Public Methods

Method Description
ConnectAsync ( ) : Task

Connect to the EV3 brick.

Disconnect ( ) : void

Disconnect from the EV3 brick.

NetworkCommunication ( string address ) : System

Create a new NetworkCommunication object

WriteAsync ( byte data ) : Task

Write data to the EV3 brick.

Method Details

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

NetworkCommunication() public method

Create a new NetworkCommunication object
public NetworkCommunication ( string address ) : System
address string The IP address of the EV3 brick
return System

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