34
CITIZEN UWP POS Print SDK - Programming Manual
2.3.6. PrinterCheckAsync method
Syntax
Task<int> PrinterCheckAsync ()
Parameter
Not exist.
Description
This method is used to send the command to get the status of the printer.
If the result of this method is successful, you can get the status of the printer by
If the result of this method is failure, there is a possibility that the connection or the printer abnormality
has occurred. In this case, please reconnect using the
If you want to print after the connected and some time passed, please check the status of the printer by
the execution of this method and the
beforehand.
In the case of network connection, it is automatically disconnected when passed a long time. If you
want to keep a connection, please execute this method regularly.
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
if ( ESCPOSConst.CMP_SUCCESS ==await printer.PrinterCheckAsync() ) {
// Success
} else {
// Fail
}