【发布时间】:2014-10-29 14:38:45
【问题描述】:
在 iOS7.1.1 上,以下 BLE 操作成功 - 它假设我有 BLE 连接设置等...
[[self peripheral]writeValue:dataToWrite forCharacteristic:nextCharacteristic type:CBCharacteristicWriteWithResponse];
但是如果我将“类型”切换为CBCharacteristicWriteWithoutResponse,我会收到以下警告并且外围设备没有收到命令:(
[[self peripheral]writeValue:dataToWrite forCharacteristic:nextCharacteristic type:CBCharacteristicWriteWithoutResponse];
错误:
CoreBluetooth[WARNING] Characteristic <CBCharacteristic: 0x178081f90 UUID = 249C2001-00D7-4D91-AC75-22D57AE2FFB8, Value = (null), Properties = 0x28, Notifying = YES, Broadcasting = NO> does not specify the "Write Without Response" property - ignoring response-less write**
感谢任何线索!
【问题讨论】:
标签: ios bluetooth-lowenergy core-bluetooth