Closed daniloab closed 1 year ago
Can you provide a pull request using the answer provided in #29 suggestions?
Can you provide a pull request using the answer provided in #29 suggestions?
What do you think could be the best solution?
Pass the interfaceNumber to connection.open() function instead of a fixed value?
And, do you have any idea why bematech didn't work?
I cannot use bematech mp-4200 as a printer.
the problem happens in the function when trying to connect with the printer.
When calling
const printer = await Printer.CONNECT(model, connection);
inside the CONNECT function, the openawait connection.open();
that comes from WebUsb has the param interface number with a fixed number of 0.then, it breaks returning the same error of this issue #29.
To try to fix it, my machine has 2 interfaces. The problem is that zero doesn't work. To get around I changed the node_modules directly to 1 and the open function worked
Returning and following the CONNECT function, the problem is that when calling
await model.profile.initialize?.();
nothing else happens.It has no errors or warnings.
What could be the problem? Do you have any idea how to solve it?