uvesshaikh22 / SunmiPrinter

Other
2 stars 0 forks source link

unable to connect to printer #4

Open Abraham4 opened 5 months ago

Abraham4 commented 5 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 2 months ago

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

shivanDawd commented 1 month 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 weeks 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!