C# Класс Lego.Ev3.Desktop.BluetoothCommunication

Communicate to EV3 brick over Bluetooth
Наследование: ICommunication
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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