/** * Available parity options for the serial port. */ export declare enum Parity { NONE = "none", EVEN = "even", MARK = "mark", ODD = "odd", SPACE = "space" } /** * Options for opening a serial port used by the `sos.hardware.openSerialPort()` method. * * @remarks * All properties are optional except `baudRate`. */ interface ISerialPortOptions { /** Unique address of the external device. */ device?: string; /** Data transmission speed in bits per second. */ baudRate: number; /** Form of error checking, whether (or what) extra bits are added to a byte. */ parity?: Parity; /** Number of bits in a byte. */ databits?: number; /** Number of bits used to signal the end of a communication packet. */ stopbits?: number; /** Enables or disables RTS/CTS handshaking over the serial port. Currently supported by selected models of BrightSign. */ rtscts?: boolean; } export default ISerialPortOptions;