The code uses a simple way to determine if a connection is TCP or RTU:
if SlaveConnection contains "COM" or "/tty", then it is a RTU connection.
However the sample RTU configuration may fail because the SlaveConnection is "ttyS0" instead of "/ttyS0". Please update the sample config to avoid misunderstanding.
The code uses a simple way to determine if a connection is TCP or RTU:
However the sample RTU configuration may fail because the SlaveConnection is "ttyS0" instead of "/ttyS0". Please update the sample config to avoid misunderstanding.