06 May 2017 06:38:14 UTC
- Distribution: Printer-ESCPOS
- Module version: 1.006
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (259 / 0 / 0)
- KwaliteeBus factor: 0
- % Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (43.32KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userSHANTANU Shantanu Bhadoriaand 2 contributors
- Dominic Sonntag
- Shantanu Bhadoria <shantanu att cpan dott org>
- COPYRIGHT AND LICENSE
Printer::ESCPOS::Connections::Serial - Serial Connection Interface for Printer::ESCPOS (supports status commands)
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 <firstname.lastname@example.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.
Module Install Instructions
To install Printer::ESCPOS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Printer::ESCPOS
For more information on module installation, please visit the detailed CPAN module installation guide.