uvesshaikh22 / SunmiPrinter

Other
2 stars 2 forks source link

unable to connect to printer #4

Open Abraham4 opened 6 months ago

Abraham4 commented 6 months ago

Hi, I add this configuration: var builder = MauiApp.CreateBuilder(); builder .UseMauiApp() .UseSunmiPrinter() .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); });

if DEBUG

        builder.Logging.AddDebug();

endif

        **builder.Services.AddSingleton(SunmiPrinter.Current);**
        return builder.Build();

And nuget says that unable to connect to printer.

Is something missing?

MityugovMaxim commented 4 months ago

Same for model V2s "Unable to connect to printer".

shivanDawd commented 3 months ago

Thanks for this package on first my application run well after that I got same Issue “Unable to connect to printer

uvesshaikh22 commented 2 months ago

Hi,

Thank you for sharing your configuration details.

I've noticed that there may be some connectivity issues with the V2 Pro at the moment. As a temporary workaround, you can try connecting to the printer using native code, which should accomplish the same task. This approach might help you bypass the current issues until I can provide a fix.

I’ll look into this problem further and work on a more permanent solution. Thank you for your patience and understanding.

If you have any other questions, please let me know!

chrisreiter commented 1 month ago

Hi! first thank you for this greatv work! I am facing the same printer connection issue but i am using a sunmi V3 mix. Is this lib designed for external sunmi printers only, or should be the built in printers work as well? thx!

chrisreiter commented 1 month ago

Hi all, i fixed the compatibility issue concerning newer devices such as V2 and V3 MIX. check my fork https://github.com/chrisreiter/SunmiPrinter