btPrinterPortList
Description
Returns a list of all the bluetooth printer ports.
Input / Parameter
N/A
Output
N/A
Callback
callback
The function to be executed if the printer ports are returned successfully.
errCallback
The function to be executed if the printer ports are not returned successfully, or when 'btPrinterPortList error: bluetoothClassicSerial plugins not found' is returned.
Video
Coming Soon.
Example
The user wants to connect to view the list of printers available.
Steps
Call the function
btPrinterPortList
in a button component.Call the function
setComboOptions
in the callback andinfoDialog
in the errCallback of thebtPrinterPortList
function.
Result
Press the Generate Printer List button.
If the printer list is generated, the printers will be shown in the combobox. If the printer list is not generated, the error dialog will appear.
Links
Last updated