Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • SerialPortPrinter

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Creates an instance of the SerialPortPrinter class wiht the specified information.

    Parameters

    • portName: string

      The serial port name, for example COM1.

    • baudRate: number

      The serial port baud rate in bits per second.

    • parity: Parity

      The serial port parity-checking protocol.

    • stopBits: StopBits

      The serial port standard number of stopbits per byte.

    • dataBits: number

      The serial port standard length of data bits per byte.

    • flowControl: Handshake

      The handshaking protocol for serial port transmission of data.

    Returns SerialPortPrinter

Properties

Id

Id: string = String.fromCharCode(3)

Accessors

baudRate

baudRate:

Gets or sets the serial port baud rate in bits per second. Default value is 9600

dataBits

dataBits:

Gets or sets the serial port standard length of data bits per byte. Default value is 8

flowControl

flowControl:

Gets or sets the handshaking protocol for serial port transmission of data. Default value is XOnXOff

parity

parity:

Gets or sets the serial port parity-checking protocol. Default value is None

portName

portName:

Gets or sets the serial port name, for example COM1. Default value is "COM1"

stopBits

stopBits:

Gets or sets the serial port standard number of stopbits per byte. Default value is One

Methods

serialize

  • serialize(): string