From 3fcbaf29cb2280542b7678fba97d5c855908caab Mon Sep 17 00:00:00 2001 From: Favot <70208301+Favot@users.noreply.github.com> Date: Wed, 21 Jun 2023 11:28:33 +0800 Subject: [PATCH 1/2] Remove the unsed variable peripheralUUIDString --- ios/BleManager.m | 1 - 1 file changed, 1 deletion(-) diff --git a/ios/BleManager.m b/ios/BleManager.m index a3f0a2a9..4990224b 100644 --- a/ios/BleManager.m +++ b/ios/BleManager.m @@ -972,7 +972,6 @@ - (void)peripheral:(CBPeripheral *)peripheral didDiscoverCharacteristicsForServi } NSLog(@"Characteristics For Service Discover"); - NSString *peripheralUUIDString = [peripheral uuidAsString]; NSMutableSet *characteristicsForService = [NSMutableSet new]; [characteristicsForService addObjectsFromArray:service.characteristics]; [retrieveServicesLatches setObject:characteristicsForService forKey:service.UUID.UUIDString]; From 40b2f982c7524ec51f1ecc3b335e5a83f5f7c751 Mon Sep 17 00:00:00 2001 From: Favot <70208301+Favot@users.noreply.github.com> Date: Wed, 21 Jun 2023 11:46:42 +0800 Subject: [PATCH 2/2] Update type of centralManagerStateToString from int to CBManagerState --- ios/BleManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/BleManager.m b/ios/BleManager.m index 4990224b..dd0596b2 100644 --- a/ios/BleManager.m +++ b/ios/BleManager.m @@ -185,7 +185,7 @@ - (void)peripheral:(CBPeripheral *)peripheral didUpdateNotificationStateForChara -- (NSString *) centralManagerStateToString: (int)state +- (NSString *) centralManagerStateToString: (CBManagerState)state { switch (state) { case CBManagerStateUnknown: