Android Question ECS/POS printer USB print library (error)

mario53

Member
Licensed User
in reference to the post:https://www.b4x.com/android/forum/threads/ecs-pos-printer-usb-print-library.87122/#content
I can not connect to the thermal printer; trying the suggested library I have the following error:
java.lang.exception: java.lang.arrayindexoutboundsexception: lenght=8;index=8
to this statement:
Dim vid As Int
Dim pid As Int
vId= 0xFE6
pId=0x811E
pt.connectusb2(vid,pid) 'HERE IS YOU DEVICE VendorID AND productID"
while with the usb-serial method I can (only for texts) to connect to the printer:https://www.b4x.com/android/forum/threads/astreams-write-to-print.82429/
some idea?
thank you
 
Top