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

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

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
PollInput ( object state ) : void

메소드 상세

BluetoothCommunication() 공개 메소드

Create a new NetworkCommunication object
public BluetoothCommunication ( ) : System
리턴 System

BluetoothCommunication() 공개 메소드

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

ConnectAsync() 공개 메소드

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

Disconnect() 공개 메소드

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

WriteAsync() 공개 메소드

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