The following...
func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) {
print(characteristic)
}
..outputs...
<CBCharacteristic: 0x1700b8180, UUID = FFE1, properties = 0x10, value = <01>, notifying = YES>
I want the "value" part "01".
characteristic.valuewill give a NSData object<01>, but it's up to you to transform that hex into the value you want (string encoding? int value?, etc.). - Larme