Giter Club home page Giter Club logo

Comments (3)

felipeguimaraes2 avatar felipeguimaraes2 commented on May 12, 2024 2

@saitahmety the printer must return all four statuses in this method if the memory switch 1-3 is set to "receive buffer full" from "receive buffer full or offline", as you can see here mike42/escpos-php#43 (comment)

"receive buffer full" => printer always responds
"receive buffer full or offline" => printer does not respond in some situations such as cover open or paper out

After changing this memory switch, it always returns successfully.

But there is still a bug because the promise is not rejected when "receive buffer full or offline" is set, so I created a pull #46 to solve it

from driver.

saitahmety avatar saitahmety commented on May 12, 2024 1

Oh I got it, thank you so much @felipeguimaraes2 , solved on this #46

from driver.

saitahmety avatar saitahmety commented on May 12, 2024

Moreover,
getStatuses function does not return response when at least one of these 4 statuses is undefined.
Because of "if (buffer.length < 4)" condition.
image

But I want to get the other statuses even if the byte data of one status is undefined.
When I remove "if (buffer.length < 4)" condition
output like this,
image

Can we remove this condition ?

Please revision code and release NPM. It's important for my project.
Thanks for this awesome project.

from driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.