#printing #fiscal #traits #send #document #report #lve

bin+lib fiscalprinter

A Fiscal Printer trait for implementation

10 stable releases

1.1.1 Jan 3, 2023
1.0.9 Jan 2, 2023
1.0.6 Dec 30, 2022
1.0.3 Oct 17, 2022

#2 in #fiscal

Download history 2/week @ 2024-02-15 12/week @ 2024-02-22 1/week @ 2024-02-29 5/week @ 2024-03-07 13/week @ 2024-03-14 33/week @ 2024-03-28 25/week @ 2024-04-04

58 downloads per month

Custom license

21KB
353 lines

Fiscal Printer trait for implement

Allows define a trait using base values for documents send to and from fiscal printer.

For Target Raspberry Pi

rustup target add armv7-unknown-linux-gnueabihf

https://medium.com/swlh/compiling-rust-for-raspberry-pi-arm-922b55dbb050

Examples:

main.js
    let mut _handler = serialport::new("/dev/ttyUSB0", 9600)
            .timeout(Duration::from_millis(10))
        .open().expect("Failed to open port");
    let mut _pnp_driver = Printer { printer : PNP::new()};
    //  Get result from report
    let _x_result = _pnp_driver.printer.report(&mut _handler, Report::new(ReportType::XReport));

Dependencies

~2–2.9MB
~55K SLoC