C# Class Lego.Ev3.WinRT.Phone.NetworkCommunication

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

Public Methods

Method Description
ConnectAsync ( ) : IAsyncAction

Connect to the EV3 brick.

ConnectAsync ( ) : Task
Disconnect ( ) : void

Disconnect from the EV3 brick.

NetworkCommunication ( string address ) : System

Create a new NetworkCommunication object

WriteAsync ( [ data ) : IAsyncAction

Write data to the EV3 brick.

WriteAsync ( [ data ) : Task

Private Methods

Method Description
ConnectAsyncInternal ( HostName hostName ) : Task
PollInput ( IAsyncAction operation ) : void
WriteAsyncInternal ( byte data ) : Task

Method Details

ConnectAsync() public method

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

ConnectAsync() public method

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 ( [ data ) : IAsyncAction
data [ Byte array to write to the EV3 brick.
return IAsyncAction

WriteAsync() public method

public WriteAsync ( [ data ) : Task
data [
return Task