Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I change default timeout before bill acceptor return banknote, if not invoking stack method #7

Open
scorpioRED opened this issue Jul 1, 2019 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@scorpioRED
Copy link

Hi!
Thanks for your great project!
In my case when bill acceptor got a banknote, I send an HTTP request to the server

 device.on('escrow', async function (bill) {
    doRequest.then(result => {
        if(result == 'ok'){
           device.stack();
       }else {
            device.retrieve();
       }
    })
})

So, sometimes when system lost internet connection and the HTTP request is still pending, after about 11 seconds the bill acceptor starting return banknote (automatic) before I got HTTP response. How do I change or remove this timeout?

@fenixphp
Copy link
Contributor

fenixphp commented Jul 1, 2019

This is a feature of the device and it can not be changed (see the official documentation). I can advise at 9 seconds the device translates into a "hold" mode, but there are some pitfalls here.

@fenixphp fenixphp added the help wanted Extra attention is needed label Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants