![]() For example:ĬommPortIdentifier cpi = CommPortIdentifier. Instead, you should call the open( ) method of a CommPortIdentifier that maps to the port you want to communicate with, then cast the result to SerialPort. SerialPort has a public constructor, but that shouldn be used by applications. ![]() Simple input and output is accomplished with the methods of the superclass, CommPort. The line serialPort (SerialPort) portId.open(Serial Loop Test, 2000) opens the serial port and assigns an owner to it. The main purposes of the class are to allow the programmer to inspect, adjust, and monitor changes in the settings of the serial port. PC DB-9 serial port to a DB-25 modemĬlass is an abstract subclass of CommPort that provides various methods and constants useful for working with RS-232 serial portsĪnd devices.
0 Comments
Leave a Reply. |