2

We are using epos JavaScript 2.9.0 to connect and print receipts via our webapp from Android devices. But we are getting only connection_timeout error all the time. Sometimes though it works and is very unstable. It works fine from the connected pc .

Here is my code:

var ePosDev = new epson.ePOSDevice();
ePosDev.connect('IP address', 'PORT', callback_connect);

callback_connect's resultConnect variable always return CONNECTION_TIMEOUT

5
  • Do you try to send the direct print command to your printer from webapp? Commented Oct 25, 2018 at 6:21
  • how can i do that. can you please guide me. Commented Oct 25, 2018 at 6:29
  • Is there any specific browser in which you want to run the webapp or it's open? Commented Oct 25, 2018 at 6:34
  • I have tried for crome & firefox but in both its giving same error Commented Oct 25, 2018 at 6:40
  • you can directly print from browser, only issue is, you want the dialog box or not. if not try stackoverflow.com/questions/4292373/… Commented Oct 25, 2018 at 7:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.