Printer::ESCPOS::Connections::Serial - Serial Connection Interface for Printer::ESCPOS (supports status commands)
version 1.006
This variable contains the path for the printer device file like '/dev/ttyS0' when connected as a serial device on UNIX-like systems. For Windows this will be the serial port name like 'COM1', 'COM2' etc. This must be passed in the constructor. I haven't tested this on windows, so if you are able to use serial port successfully on windows, drop me a email to let me know that I got it right :)
When used as a local serial device you can set the baudrate of the printer too. Default (38400) will usually work, but not always.This param may be specified when creating printer object to make sure it works properly.
$printer = Printer::Thermal->new(deviceFilePath => '/dev/ttyACM0', baudrate => 9600);
Seconds per unfulfilled read call, default 150
Set this value to 1 if you are connecting your printer using the USB Cable but it shows up as a serial device
Read Data from the printer
Sends buffer data to the printer.
Shantanu Bhadoria <shantanu@cpan.org> https://www.shantanubhadoria.com
This software is copyright (c) 2017 by Shantanu Bhadoria.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Printer::ESCPOS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Printer::ESCPOS
CPAN shell
perl -MCPAN -e shell install Printer::ESCPOS
For more information on module installation, please visit the detailed CPAN module installation guide.