Skip to content

Commit

Permalink
Fix compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
peitschie committed Oct 25, 2024
1 parent 5d8b792 commit 811b212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ios/BLECentralPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
NSTimer *scanTimer;
}

@property (strong, nonatomic) NSMutableSet *peripherals;
@property (strong, nonatomic) NSMutableDictionary *peripherals;
@property (strong, nonatomic) CBCentralManager *manager;

- (void)startScanWithOptions:(CDVInvokedUrlCommand *)command;
Expand Down
4 changes: 2 additions & 2 deletions src/ios/BLECentralPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ -(void)stopScanTimer:(NSTimer *)timer {

- (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI {

[peripherals setbject:peripheral forKey:peripheral.identifier];
[peripherals setObject:peripheral forKey:peripheral.identifier];
[peripheral setAdvertisementData:advertisementData RSSI:RSSI];

if (discoverPeripheralCallbackId) {
Expand Down Expand Up @@ -820,7 +820,7 @@ - (void)peripheral:(CBPeripheral *)peripheral didDiscoverCharacteristicsForServi
[self.commandDelegate sendPluginResult:pluginResult callbackId:connectCallbackId];
}
return;
}
}

NSLog(@"Found characteristics for service %@", service);
for (CBCharacteristic *characteristic in service.characteristics) {
Expand Down

0 comments on commit 811b212

Please sign in to comment.