NAME
Printer::ESCPOS::Connections::Serial - Serial Connection Interface for Printer::ESCPOS (supports status commands)
VERSION
version 0.015
ATTRIBUTES
deviceFilePath
This variable contains the path for the printer device file when connected as a serial device on UNIX-like systems. I haven't added support for Windows and it probably wont work in doz as a local printer without some modifications. Feel free to try it out and let me know what happens. This must be passed in the constructor
baudrate
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);
readConstTime
Seconds per unfulfilled read call, default 150
serialOverUSB
Set this value to 1 if you are connecting your printer using the USB Cable but it shows up as a serial device
METHODS
read
Read Data from the printer
Sends buffer data to the printer.
AUTHOR
Shantanu Bhadoria <shantanu@cpan.org> https://www.shantanubhadoria.com
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 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.