Cadence from BLE Device
<pre><code>-(void)peripheral:(CBPeripheral *)peripheral didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error
{
     dispatch_async(dispatch_get_main_queue(), ^{

         NSData *data = characteristic.value;
         uint8_t *array = (uint8_t*) data.bytes;

         cadenceValue = [CharacteristicReader readUInt8Value:&amp;array];
         self.cadence.text = [NSString stringWithFormat:@"%d", cadenceValue];
         });
}
</code></pre>

<p>How to get cadence from <strong>bLE</strong> (Bluetooth low energy) device in <strong>swift 2</strong>. I am unable to find exact code for this. For this <code>didUpdateValueForCharacteristic</code> delegate method is called. </p>

<p>I have a code of nRF Toolbox but it is in <strong>objective c</strong> or <strong>swift 3</strong> but my project is in <strong>swift 2</strong>. I tried to call objective c method using bridging header but it was always returned 0 cadence.</p>