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

Printer not disconnected (random) #76

Open
cloudeweb opened this issue Apr 25, 2019 · 0 comments
Open

Printer not disconnected (random) #76

cloudeweb opened this issue Apr 25, 2019 · 0 comments

Comments

@cloudeweb
Copy link

cloudeweb commented Apr 25, 2019

Hello,
this is my code, but sometime my printer don't disconnect.
I added a setTimout for delay disconnect but problem is same.
someone have same my problem?

` BTPrinter.list(function (data) {
BTPrinter.connect(function(data){
BTPrinter.printBase64(function(data){
BTPrinter.printTextSizeAlign(function(data){
BTPrinter.printTextSizeAlign(function(data){
BTPrinter.printTextSizeAlign(function(data){

    },function(err){
      console.log(err);
    }, text,'2','0') //text

    },function(err){
      console.log(err);
    }, order_number,'15','1') //order number

    },function(err){
      console.log(err);
    }, description,'20','1') //description

    },function(err){
    console.log(err);
    }, logo, '1') //logo

    },function(err){
    console.log(err);
    }, printer); // printer connect

    },function(err){
    console.log(err); //printer list

});

     setInterval(function(){
        BTPrinter.disconnect(function(data){
          },function(err){
            console.log(err);
         }, printer);
     }, 3000);`

thanks!

@cloudeweb cloudeweb changed the title Printer don't disconnected (random) Printer not disconnected (random) Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant