Core Bluetooth can't notify value
Core Bluetooth can't notify value
- Subject: Core Bluetooth can't notify value
- From: 罗艺 via Cocoa-dev <email@hidden>
- Date: Fri, 12 Jun 2020 01:07:52 +0800
In LightBlue app the device show write without response and notify properties
of characteristic, and in code show the same properties.
serviceUUID: <CBService: 0x28399c480, isPrimary = YES, UUID = FFB0>,
characteristic: <CBCharacteristic: 0x2808d80c0, UUID = FFB1, properties = 0x14,
value = (null), notifying = NO>
(lldb) print characteristic.properties
(CBCharacteristicProperties) $0 = CBCharacteristicPropertyWriteWithoutResponse
| CBCharacteristicPropertyNotify
Why the notifying properties is NO? So I can’t get data from
didUpdateValueForCharacteristic method after I invoke setNotifyValue:YES
forCharacteristic method.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden