Serial Port Complete - Latest Microcontroller projects

(lily) #1

9


 2,! 3 






 


Programmers who use Microsoft’s .NET Framework can use the SerialPort class
to access COM-port devices. Applications can use the class’s properties, meth-
ods, and events to access ports without having to resort to low-level program-
ming or the Windows API. The SerialPort class was added in version 2.0 of
.NET.
This chapter shows how to use the class to exchange text and binary data. The
code in this chapter uses resources in the following namespaces:

 Imports System
Imports System.IO.Ports


 using System.IO;
using System.IO.Ports;

Free download pdf