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
btPrinterPortListin a button component.Call the function
setComboOptionsin the callback andinfoDialogin the errCallback of thebtPrinterPortListfunction.


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