Open Jury-jpg opened 1 year ago
NetworkPrinter
does not contain a definition for StartMonitoring
Looking at the tests implemented in this git, I found how to get the data, maybe it will help you
using(var xPrinter = new SerialPrinter(portName: "COM2", baudRate: 115200))
{
xPrinter.StatusChanged += StatusChanged;
xPrinter.Connected += ConnectedChanged;
var xEpson = new EPSON();
xPrinter.Write(xEpson.Initialize());
xPrinter.Write(xEpson.Enable());
xPrinter.Write(xEpson.EnableAutomaticStatusBack());
Thread.Sleep(5000);
}
void StatusChanged(object sender, EventArgs e)
{
var status = (PrinterStatusEventArgs)e;
status.Dump();
}
Hey @Jury-jpg could you provide some more details on what your question / concern is regarding this function? Are you not sure how to use it? There is an example in the README: