Skip to content

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

@scorpioRED

Description

@scorpioRED

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions