C# 클래스 Lego.Ev3.Desktop.BluetoothCommunication

Communicate to EV3 brick over Bluetooth
상속: ICommunication
파일 보기 프로젝트 열기: BrianPeek/legoev3 1 사용 예제들

공개 메소드들

메소드 설명
BluetoothCommunication ( string port ) : System

Initialize a BluetoothCommunication object.

ConnectAsync ( ) : System.Threading.Tasks.Task

Connect to the EV3 brick.

Disconnect ( ) : void

Disconnect from the EV3 brick.

WriteAsync ( byte data ) : System.Threading.Tasks.Task

Write data to the EV3 brick.

비공개 메소드들

메소드 설명
SerialPortDataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

메소드 상세

BluetoothCommunication() 공개 메소드

Initialize a BluetoothCommunication object.
public BluetoothCommunication ( string port ) : System
port string The COM port on which to connect.
리턴 System

ConnectAsync() 공개 메소드

Connect to the EV3 brick.
public ConnectAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

Disconnect() 공개 메소드

Disconnect from the EV3 brick.
public Disconnect ( ) : void
리턴 void

WriteAsync() 공개 메소드

Write data to the EV3 brick.
public WriteAsync ( byte data ) : System.Threading.Tasks.Task
data byte Byte array of data to send to the EV3 brick.
리턴 System.Threading.Tasks.Task