disconnect¶
Description
Terminates the connection with the printer.
If a value outside the valid range is specified for timeout, it is automatically corrected as follows:
- Values less than 2000 are set to 2000 ms.
- Values greater than 300000 are set to 300000 ms.
Syntax
public func disconnect(timeout: Int) throws
Parameter
timeout
Specifies the timeout period for the disconnect operation, in milliseconds.
This value must be greater than the timeout value specified by setSendTimeout.