more useful options | |
PerlMonks |
Re: SerialPort issues under Windows 10by Discipulus (Canon) |
on Apr 15, 2021 at 13:05 UTC ( [id://11131327]=note: print w/replies, xml ) | Need Help?? |
Hello clinicalAD and welcome to the monastery and to the wonderful worldo of perl! waiting for others answers, just shooting in the dark: try to print also the OS error in your die clause: || die "couldn't open COM1 $^E"; Then you can imports some useful constants (see also Operating methods) from the module, which inherit from Win32API::CommPort Search here at the monastery for other useful examples, some one very recent as How to read serial port with WIN32:SerialPort? L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|