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

Communicate with EV3 brick over TCP
Inheritance: ICommunication
Afficher le fichier Open project: BrianPeek/legoev3

Méthodes publiques

Méthode 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

Méthode Description
ConnectAsyncInternal ( HostName hostName ) : Task
PollInput ( IAsyncAction operation ) : void
WriteAsyncInternal ( byte data ) : Task

Method Details

ConnectAsync() public méthode

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

ConnectAsync() public méthode

public ConnectAsync ( ) : Task
Résultat Task

Disconnect() public méthode

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

NetworkCommunication() public méthode

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

WriteAsync() public méthode

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

WriteAsync() public méthode

public WriteAsync ( [ data ) : Task
data [
Résultat Task