if(characteristic.properties & CBCharacteristicPropertyWriteWithoutResponse){
[p writeValue:data forCharacteristic:characteristic type:CBCharacteristicWriteWithoutResponse];
}else{
[p writeValue:data forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse];
}
网友评论