# SerialPort

Inherits .Stream in gb

This class was designed to allow to communicate using a serial interface (usually RS-232 serial port). This class inherits from ".Stream" class, so you can use standard streams methods to send and receive data, and to close the port ( print, read, write...)

This class is creatable.

`DIM hSerialPort AS SerialPort hSerialPort = NEW SerialPort ( )`

Creates a new SerialPort object.

Properties |  | Methods |  | Events |  | Constants |
--- | --- | --- | --- | --- | --- | --- | ---
CTS DCD DSR DTR DataBits FlowControl Parity PortName RNG RTS Speed Status StopBits |  | Open |  | CTSChange DCDChange DSRChange DTRChange RNGChange RTSChange Read |  | Bits1 Bits2 Bits5 Bits6 Bits7 Bits8 Both Even Hardware None Odd Software |