btPrinterDisconnect
Description
Disconnects a bluetooth printer from the device.
Input / Parameter
timeout
The duration the printer can be idle for before it is disconnected.
String/Text
-
-
Yes
Output
N/A
Callback
callback
The function to be executed if the printer is disconnected successfully.
errCallback
The function to be executed if the printer is not disconnected successfully.
Video
Coming Soon.
Example
The user wants to disconnect a printer from their device.
Steps
Call the function
btPrinterDisconnect
in a button component.Call the function
infoDialog
in the callbacks of thebtPrinterDisconnect
function.
Result
If the printer is idle longer than the timeout duration passed, the printer will be disconnected and the success infoDialog will appear. If the printer is not disconnected successfully, the error infoDialog will appear.
Select the printer to disconnect from the combobox.
Press the Disconnect button. If the printer is disconnected successfully, the success infoDialog will appear. If the printer is not disconnected successfully, the error dialog will appear.
Links
Last updated