Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caglargul52/realtime-serialport
https://github.com/caglargul52/realtime-serialport
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/caglargul52/realtime-serialport
- Owner: caglargul52
- Created: 2019-11-11T09:56:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-19T00:48:13.000Z (almost 3 years ago)
- Last Synced: 2024-02-17T14:27:32.063Z (11 months ago)
- Language: C#
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .NET RealTime SerialPort
The purpose of writing the library is to automatically connect the USB plug-out.static void Main(string[] args)
{
RealTimeSerialPort _serialPort = new RealTimeSerialPort(1000, true);
_serialPort.SuccessReceived += _serialPort_SuccessReceived;
_serialPort.ErrorReceived += _serialPort_ErrorReceived;
_serialPort.PortName = "COM1";
_serialPort.BaundRate = 9500;
_serialPort.Open();
}private static void _serialPort_ErrorReceived(string exceptionMessage)
{
Console.WriteLine(exceptionMessage);
}private static void _serialPort_SuccessReceived(string text)
{
Console.WriteLine(text);
}