I set a timer to read a BLE RSSI, frequency is 0.01s, use readRSSI api, but the result can't return per 0.01s, it seems like 1.0s. So I want to know whether the frequency can't below 1.0s .
- (IBAction)readRSSI:(id)sender {
if (_timer == nil){
_timer=[NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(startReadRSSI) userInfo:nil repeats:YES];
}
_timer.fireDate = [NSDate date];
}
- (void)startReadRSSI
{
[self.peri readRSSI];
}
-(void)peripheral:(CBPeripheral *)peripheral didReadRSSI:(NSNumber *)RSSI error:(NSError *)error
{
NSLog(@"%@",RSSI);
}