-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
When I print using NetworkPrinter
it prints only the first time and then it doesn't appear in .discover()
Reproduce:
connect ESC mm80 printer over WIFI to your computer.
Then use this snippet
final profile = await CapabilityProfile.load();
final printers = await NetworkPrinterManager.discover();
print(printers.length); // at least one printer discovered
NetworkPrinter printer = printers[0];
var manager = NetworkPrinterManager(printer, PaperSize.mm80, profile);
if(!printer.connected) {
final res = await manager.connect()
print(res.msg); // gives Success for the first time and then timeout
}
ConnectionResponse res = await manager.writeBytes(data, isDisconnect: false);
print(res.msg,); // Success every time
printers = await pos.NetworkPrinterManager.discover();
print(printers.length); // 0
Metadata
Metadata
Assignees
Labels
No labels