Class: ModbusSerialClient

ModbusSerialClient

Provides methods and properties for using Modbus via a serial port

Members


<readonly> baudRate :int

The baud rate of communications.

Type:
  • int
Since:
  • 0.1 (WAT 2.4)

<readonly> dataBits :int

The number of bits for communications.

Type:
  • int
Since:
  • 0.1 (WAT 2.4)

<readonly> parity :int

The parity for communications.

Type:
  • int
Since:
  • 0.1 (WAT 2.4)
See:

<readonly> portName :string

The serial port used for device communication (e.g. /dev/ttyS0). If blank, the specified serial port was not available for exclusive use.

Type:
  • string
Since:
  • 0.1 (WAT 2.4)
Example
var client = modbus.createSerialClient(serial);
if (client.portName == '')
   console.debug('Specified serial port is not available');

<readonly> stopBits :int

The number of stop bits for communications.

Type:
  • int
Since:
  • 0.1 (WAT 2.4)