initWifiPrinter static method
Implementation
static Future<bool> initWifiPrinter(String ipAddress, KeckPaperSize size, {int port = 9100}) async {
paperSize = size;
KeckPrinterService.ipAddress = ipAddress;
KeckPrinterService.port = port;
try {
_profile = await CapabilityProfile.load();
return true;
} catch (e) {
print('Failed to connect to printer: $e');
return false;
}
}