(C++ question) wait for connected state
-
Does anyone have any examples of a non-blocking loop that could be implemented on the PanelDue to wait until it has exited the "connecting" status? There are some setup items we want to add that are dependent on knowing if the printer is in an "off" status.
primitive example:
OM::PrinterStatus status = GetStatus(); while (status == OM::PrinterStatus::connecting) { // Non-blocking code here OM::PrinterStatus status = GetStatus(); } carry on..
Thanks
-
the architecture of paneldue is rather "stateless". it is a more or less passive device which shows only the status of the printer.
if you want to do something like that you need to build a state machine for that.
-
Was afraid of that.. and certainly don't want to reinvent the wheel for something trivial. I was able to get it worked out another way. Thanks