@magicred-1/react-native-lxmf 0.2.4 → 0.2.6
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.
- package/ios/BLEManager.swift +2 -1
- package/package.json +1 -1
package/ios/BLEManager.swift
CHANGED
|
@@ -538,12 +538,13 @@ extension BLEManager: CBPeripheralManagerDelegate {
|
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
+
// CoreBluetooth no-ops this for writeWithoutResponse — safe to call unconditionally.
|
|
541
542
|
peripheral.respond(to: request, withResult: .success)
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
545
|
|
|
545
546
|
func peripheralManager(_ peripheral: CBPeripheralManager, central: CBCentral,
|
|
546
|
-
|
|
547
|
+
didSubscribeTo characteristic: CBCharacteristic) {
|
|
547
548
|
if !subscribedCentrals.contains(where: { $0.identifier == central.identifier }) {
|
|
548
549
|
subscribedCentrals.append(central)
|
|
549
550
|
// Register central as a peer with Rust
|