leesiongchan / react-native-esc-pos

A React Native ESC/POS module to help you connect to your ESC/POS printer easily.
MIT License
80 stars 84 forks source link

connect() function now working correctly. #37

Open smarttvdev opened 4 years ago

smarttvdev commented 4 years ago

I followed your code, but connect function seems not working correctly. below is my code.

var connected=await EscPos.connect("192.168.1.18", 9100); alert("connection status:"+connected)

Even though i did not connect printer, it is always returnning true. And also, from your try catch statement, can't catch error in catch section. I used Start-100 Printer for this.

leesiongchan commented 4 years ago

Sorry can you try to debug it in the debugger, see if you can see any logs there.