fiscalprinter

Crates.iofiscalprinter
lib.rsfiscalprinter
version1.1.1
sourcesrc
created_at2022-10-17 19:57:30.252211
updated_at2023-01-03 05:11:39.560181
descriptionA Fiscal Printer trait for implementation
homepage
repository
max_upload_size
id690362
size64,389
Yamel Senih (yamelsenih)

documentation

README

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));
Commit count: 0

cargo fmt