btPrinterIsConnected

Description

Checks whether a printer is connected to the device.

Input / Parameter

N/A

Output

N/A

Callback

yesCallback

The function to be executed if the printer is connected.

noCallback

The function to be executed if the printer is not connected.

Video

Coming Soon.

Example

The user wants to check whether a printer is connected to their device.

Steps

  1. Call the function btPrinterIsConnected in a button component.

  2. Call the function infoDialog in the callbacks of the btPrinterIsConnected function.

Result

  1. Select the printer to check from the combobox.

  2. Press the Is Connected button. If the printer is connected to the device, the success infoDialog will appear. If the printer is not connected, the error dialog will appear.

Last updated