Permalink
Browse files

添加外设模式调试中的打印日志。

  • Loading branch information...
coolnameismy committed May 22, 2016
1 parent d8bb765 commit d51813c643378f039faf3a8c8eb192d344990179
Showing with 1 addition and 1 deletion.
  1. +1 −1 Test/BabyTestStub/BabyTestStub/ViewController.m
@@ -101,8 +101,8 @@ - (void)babyDelegate{
//设置添加service委托 | set didAddService block
[self.baby peripheralModelBlockOnDidReceiveWriteRequests:^(CBPeripheralManager *peripheral,NSArray *requests) {
NSLog(@"didReceiveWriteRequests");
CBATTRequest *request = requests[0];
NSLog(@"didReceiveWriteRequests: value:%@",request.value);
//判断是否有写数据的权限
if (request.characteristic.properties & CBCharacteristicPropertyWrite) {
//需要转换成CBMutableCharacteristic对象才能进行写值

0 comments on commit d51813c

Please sign in to comment.