PrimaelQuemerais / brother_label_print_dart

A dart plugin implementing the Brother Label Print SDK
https://pub.dev/packages/brotherlabelprintdart
Apache License 2.0
8 stars 4 forks source link

ERROR CONNECT SOCKET FAILED brother PT-900W #6

Open robethabibi opened 3 years ago

robethabibi commented 3 years ago

Hi, I tried the code from example use the PT-P900W version and got the ERROR_CONNECT_SOCKET_FAILED this is my code result = await Brotherlabelprintdart.printLabelFromTemplate( "192.168.118.1", PrinterModel.PT_P900W, labels);

Please help, thank you

BernardoOliveira1 commented 2 years ago

I´ve come across the same issue. I´m using a QL-810W; the stacktrace was:

D/BROTHER LABEL PRINT(24371): Printing on : 192.168.15.8 D/BROTHER LABEL PRINT(24371): Thread started E/Brother Print SDK(24371): failed to connect to /192.168.15.8 (port 9100) from /:: (port 0): connect failed: ENETUNREACH (Network is unreachable) E/Brother Print SDK(24371): IOException is caught in connect method. E/Brother Print SDK(24371): failed to connect to /192.168.15.8 (port 9100) from /:: (port 0): connect failed: ENETUNREACH (Network is unreachable) E/BROTHER PRINTER ERROR(24371): ERROR_CONNECT_SOCKET_FAILED D/BROTHER LABEL PRINT(24371): Print finished