# Class SerialPortPrinter

It represents a printer which is connected through a serial port in the client machine.

  Neodynamic\SDK\Web\ClientPrinter
  Neodynamic\SDK\Web\SerialPortPrinter

Namespace: Neodynamic\SDK\Web
Located at WebClientPrint.php

Methods summary
`public` | # `__construct( string $portName, integer $baudRate, integer $parity, integer $stopBits, integer $dataBits, integer $flowControl )` Creates an instance of the SerialPortPrinter class wiht the specified information. Creates an instance of the SerialPortPrinter class wiht the specified information. #### Parameters $portName `string` $portName The serial port name, for example COM1. $baudRate `integer` $baudRate The serial port baud rate in bits per second. $parity `integer` $parity The serial port parity-checking protocol. $stopBits `integer` $stopBits The serial port standard number of stopbits per byte. $dataBits `integer` $dataBits The serial port standard length of data bits per byte. $flowControl `integer` $flowControl The handshaking protocol for serial port transmission of data.
`public` | # `serialize( )` #### Overrides `Neodynamic\SDK\Web\ClientPrinter::serialize()`

Properties summary
`public string` | $portName | `"COM1"` | # Gets or sets the serial port name, for example COM1. Default value is "COM1" Gets or sets the serial port name, for example COM1. Default value is "COM1"
`public integer` | $baudRate | `9600` | # Gets or sets the serial port baud rate in bits per second. Default value is 9600 Gets or sets the serial port baud rate in bits per second. Default value is 9600
`public integer` | $parity | ``Neodynamic\SDK\Web\SerialPortParity::NONE`` | # Gets or sets the serial port parity-checking protocol. Default value is NONE = 0 NONE = 0, ODD = 1, EVEN = 2, MARK = 3, SPACE = 4 Gets or sets the serial port parity-checking protocol. Default value is NONE = 0 NONE = 0, ODD = 1, EVEN = 2, MARK = 3, SPACE = 4
`public integer` | $stopBits | ``Neodynamic\SDK\Web\SerialPortStopBits::ONE`` | # Gets or sets the serial port standard number of stopbits per byte. Default value is ONE = 1 ONE = 1, TWO = 2, ONE_POINT_FIVE = 3 Gets or sets the serial port standard number of stopbits per byte. Default value is ONE = 1 ONE = 1, TWO = 2, ONE_POINT_FIVE = 3
`public integer` | $dataBits | `8` | # Gets or sets the serial port standard length of data bits per byte. Default value is 8 Gets or sets the serial port standard length of data bits per byte. Default value is 8
`public integer` | $flowControl | ``Neodynamic\SDK\Web\SerialPortHandshake::XON_XOFF`` | # Gets or sets the handshaking protocol for serial port transmission of data. Default value is XON_XOFF = 1 NONE = 0, REQUEST_TO_SEND = 2, REQUEST_TO_SEND_XON_XOFF = 3, XON_XOFF = 1 Gets or sets the handshaking protocol for serial port transmission of data. Default value is XON_XOFF = 1 NONE = 0, REQUEST_TO_SEND = 2, REQUEST_TO_SEND_XON_XOFF = 3, XON_XOFF = 1

Properties inherited from Neodynamic\SDK\Web\ClientPrinter
`$printerId`