09.09.2024, 09:21
You can pass the RTU port number (1, 2 or 3) when creating a proxy connection like this:
Make sure to configure and enable both ports in RTU settings.
Code:
require('mbproxy').new(2) -- use RTU 2
Make sure to configure and enable both ports in RTU settings.