connect¶
Overloads
| Name | Description |
|---|---|
| connect(printer: SIISLP800Printer) async throws | Starts a connection to the printer using the specified printer information. |
| connect(address: String) async throws | Starts a connection to the printer using the specified address. |
connect(printer: SIISLP800Printer) async throws¶
Description
Starts a connection to the printer using the specified printer information.
Call this method before using other SIISLP800PrinterManager methods.
Syntax
func connect(printer: SIISLP800Printer) async throws
Parameter
printer
The SIISLP800Printer instance retrieved from getFoundPrinter().
Note
A concurrent connection from multiple apps to one printer is not supported.
connect(address: String) async throws¶
Description
Starts a connection to the printer using the specified address.
Call this method before using other SIISLP800PrinterManager methods.
Syntax
func connect(address: String) async throws
Parameter
address
Specify the Bluetooth device address.
Example:"00:11:22:AA:BB:CC"
Sample
let printerManager = SIISLP800PrinterManager()
let address = "00:11:22:AA:BB:CC"
do {
try await printerManager.connect(address: address)
} catch {
print(error)
}
Note
A concurrent connection from multiple apps to one printer is not supported.