After scanning for the BLE device, I call the below method:
- (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral
my small code snippet:
-(void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI
{
// NSLog(@"%@", central);
NSLog(@"%@", peripheral);
//NSLog(@"%@", advertisementData);
NSLog(@"%@", RSSI);
// more details:
NSString* name = [peripheral name]; // name in NULL in iOS 6
NSLog(@"%@", name);
for (NSString * key in advertisementData){
NSLog(@"%@", advertisementData[key]);
}
}