in reply to Re^2: RTU instead of TCP MBclient
in thread RTU instead of TCP MBclient

Looking at the source code, it seems that you can simply pass in the filehandle you get from (say) Win32::SerialPort instead of a filename.

Replies are listed 'Best First'.
Re^4: RTU instead of TCP MBclient
by mic537 (Novice) on Oct 07, 2016 at 08:46 UTC
    So it is enough only one parameter that is filehandle instead of two?

      I have not used the module, so I don't really know.

      But looking, a second time, at the source code, I find no mention of the parameter $speed and $addr in the code path likely taken on Windows, so maybe it would be worth a try.