C# 클래스 HouseOfTheFuture.RF24Communicator.SerialCommunicationModule

파일 보기 프로젝트 열기: HouseOfTheFuture/IoT-Device

공개 메소드들

메소드 설명
ListAvailablePorts ( ) : Task>

ListAvailablePorts - Use SerialDevice.GetDeviceSelector to enumerate all serial devices - Attaches the DeviceInformation to the ListBox source so that DeviceIds are displayed

SelectDevice ( DeviceInformation device ) : void

comPortInput_Click: Action to take when 'Connect' button is clicked - Get the selected device index and use Id to create the SerialDevice object - Configure default settings for the serial port - Create the ReadCancellationTokenSource token - Start listening on the serial port input

SerialCommunicationModule ( ) : System

비공개 메소드들

메소드 설명
OnLineRead ( object sender, string e ) : void

메소드 상세

ListAvailablePorts() 공개 메소드

ListAvailablePorts - Use SerialDevice.GetDeviceSelector to enumerate all serial devices - Attaches the DeviceInformation to the ListBox source so that DeviceIds are displayed
public ListAvailablePorts ( ) : Task>
리턴 Task>

SelectDevice() 공개 메소드

comPortInput_Click: Action to take when 'Connect' button is clicked - Get the selected device index and use Id to create the SerialDevice object - Configure default settings for the serial port - Create the ReadCancellationTokenSource token - Start listening on the serial port input
public SelectDevice ( DeviceInformation device ) : void
device Windows.Devices.Enumeration.DeviceInformation
리턴 void

SerialCommunicationModule() 공개 메소드

public SerialCommunicationModule ( ) : System
리턴 System