【发布时间】:2018-06-13 08:55:49
【问题描述】:
当我当时加载任何方法时,它会向我显示此警告,因为我正在使用从方法中检索的特征
var cbChar : CBCharacteristic
func bleManagerPeripheral(_ peripheral: CBPeripheral!, didUpdateValueFor characteristic: CBCharacteristic!, error: Error!) {
cbChar = characteristic
}
我在尝试编写以下行时收到警告
[self.cb writeValue:aData forCharacteristic:cbChar type:1];
我正在变暖
[CoreBluetooth] WARNING: Characteristic,notifying = NO> 没有指定“Write without Response”属性 - 忽略无响应写入
谁能帮帮我?
【问题讨论】:
-
该特性似乎不支持书写。你检查了
[characteristic properties]的值来检查吗? -
让我检查一下兄弟
标签: ios objective-c bluetooth bluetooth-lowenergy