react-native-ble-manager 10.1.4 → 10.1.5
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.m +1 -0
- package/package.json +1 -1
package/ios/BleManager.m
CHANGED
|
@@ -1148,6 +1148,7 @@ RCT_EXPORT_METHOD(requestMTU:(NSString *)deviceUUID mtu:(NSInteger)mtu callback:
|
|
|
1148
1148
|
NSMutableArray *data = [NSMutableArray new];
|
|
1149
1149
|
for (CBPeripheral *peripheral in peripherals) {
|
|
1150
1150
|
[data addObject:[peripheral asDictionary]];
|
|
1151
|
+
peripheral.delegate = self;
|
|
1151
1152
|
}
|
|
1152
1153
|
|
|
1153
1154
|
[self sendEventWithName:@"BleManagerCentralManagerWillRestoreState" body:@{@"peripherals": data}];
|