seven365-zyprinter 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -376,7 +376,7 @@ import Network
|
|
|
376
376
|
|
|
377
377
|
extension ZywellSDK: POSBLEManagerDelegate {
|
|
378
378
|
|
|
379
|
-
public func
|
|
379
|
+
public func POSdidUpdatePeripheralList(_ peripherals: [Any]!, RSSIList rssiList: [Any]!) {
|
|
380
380
|
guard let peripherals = peripherals as? [CBPeripheral],
|
|
381
381
|
let rssis = rssiList as? [NSNumber] else { return }
|
|
382
382
|
|
|
@@ -384,14 +384,14 @@ extension ZywellSDK: POSBLEManagerDelegate {
|
|
|
384
384
|
self.peripheralRSSIs = rssis
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
public func
|
|
387
|
+
public func POSdidConnectPeripheral(_ peripheral: CBPeripheral!) {
|
|
388
388
|
DispatchQueue.main.async { [weak self] in
|
|
389
389
|
self?.connectionCompletion?(true, nil)
|
|
390
390
|
self?.connectionCompletion = nil
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
public func
|
|
394
|
+
public func POSdidFailToConnectPeripheral(_ peripheral: CBPeripheral!, error: NSError!) {
|
|
395
395
|
let errorMsg = error?.localizedDescription ?? "Connection failed"
|
|
396
396
|
DispatchQueue.main.async { [weak self] in
|
|
397
397
|
self?.connectionCompletion?(false, errorMsg)
|
|
@@ -399,11 +399,11 @@ extension ZywellSDK: POSBLEManagerDelegate {
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
public func
|
|
402
|
+
public func POSdidDisconnectPeripheral(_ peripheral: CBPeripheral!, isAutoDisconnect: Bool) {
|
|
403
403
|
// Handle disconnection
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
public func
|
|
406
|
+
public func POSdidWriteValueForCharacteristic(_ character: CBCharacteristic!, error: NSError!) {
|
|
407
407
|
DispatchQueue.main.async { [weak self] in
|
|
408
408
|
if let error = error {
|
|
409
409
|
self?.printCompletion?(false, error.localizedDescription)
|
package/package.json
CHANGED