CodeMinion / Demo-Another-Brother-Prime

Replacement for the Demo-Another-Brother
1 stars 2 forks source link

USB Code not available #1

Open elhannaoui-ayoub opened 11 months ago

elhannaoui-ayoub commented 11 months ago

I can't find the dart code that can be used to connect to a Brother QL printer using USB Cable .

CodeMinion commented 10 months ago

Hi @elhannaoui-ayoub ,

Thanks for reaching out and apologies for the delayed reply on this. To print over USB (Android only) simply set the port to USB (https://github.com/CodeMinion/another_brother/blob/main/lib/printer_info.dart#L446) on any of the existing examples.

There is no need to search for the printer because there is only one available so the code can proceed to the printing stage without needing to perform the search normally present in the examples.

One thing to note, (and this might have changed) but make sure to first connect your printer to the device over USB, and then power the printer on. In the past we have seen cases where the printer is not detected if the printer is on before connecting it over USB to the Android device.

Hope this helps don't don't hesitate to reach out anytime if there is anything else we can help with,