Modbus component to use with modbus devices.
Example config¶
Configuration variables:¶
- uart (Required, string) - UART to define eg uart1, uart2. Old boneIO Black uses only uart1, newer versions use uart4.
- baudrate (Optional, integer, default: 9600) - Baudrate bps. Defaults to 9600. All devices share same speed!
- stopbits (Optional, integer, default: 1) - Stopbits, defaults to 1,
- bytesize (Optional, integer, default: 8) - Bytesize of modbus frame. Defaults to 8.
- parity (Optional, string, allowed_values: [‘N’, ‘E’, ‘O’]) - Parity of modbus. Defaults to N