随笔分类 -  蓝牙

iOS 10.0以后蓝牙'CBCentralManagerStateUnknown' is deprecated: first deprecated in iOS 10.0 - Use CBManagerState instead这类警告
摘要:出现这个警告,是说iOS10.0以后蓝牙的这几个方法名字换了一下而已,简单讲就是 阅读全文

posted @ 2017-12-08 09:55 高彰 阅读(4350) 评论(0) 推荐(0) 编辑

ota笔记
摘要:点对点更新就OAD,如果是多点就需要OTA 阅读全文

posted @ 2017-09-27 14:36 高彰 阅读(178) 评论(0) 推荐(0) 编辑

iOS 蓝牙获取MAC地址
摘要:援引:http://www.jianshu.com/p/1d6a8fc8134f iOS要获取蓝牙设备的MAC地址有两种:一是硬件工程师开通的服务特征下有MAC的信息,我们就从通道中获取;二是硬件工程师在扫描中设备信息中放置MAC信息,我们从有RSSI的函数中获取 1.形如你所在其他网站上看到的在某 阅读全文

posted @ 2017-03-07 11:35 高彰 阅读(3308) 评论(0) 推荐(0) 编辑

has no restore identifier but the delegate implements the centralManager:willRestoreState: method. Restoring will not be supported
摘要:http://stackoverflow.com/questions/20956880/corebluetoothwarning-has-no-restore-identifier-but-the-delegate-implements 就是说:要么删掉。 要么保留。 阅读全文

posted @ 2017-01-17 16:48 高彰 阅读(1177) 评论(0) 推荐(0) 编辑

iOS数据类型转换
摘要:iOS中,将NSData转NSString的一般方法为[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];但是当data中包含00时,所获得的新字符就会为nil,这时我们应该这样转 [NSString stringWi 阅读全文

posted @ 2017-01-11 15:12 高彰 阅读(565) 评论(0) 推荐(0) 编辑

十六进制高低位分离转换拆分
摘要:http://www.cocoachina.com/bbs/read.php?tid=1706049同行解答。 十六进制高低位分离转换拆分 以2016为例:2016(十进制)->0x7E0(十六进制),按照硬件方面要求拆分成0x07,0xE0。 阅读全文

posted @ 2016-12-20 19:13 高彰 阅读(9351) 评论(0) 推荐(0) 编辑

蓝牙开发笔记
摘要:【链接】LightBlue基础使用教程http://www.jianshu.com/p/2bfde2ba8a99 【链接】iOS蓝牙入门http://www.jianshu.com/p/ae8c44b166d7 【链接】『CoreBluetooth』1.初识http://www.saitjr.com 阅读全文

posted @ 2016-12-15 13:54 高彰 阅读(518) 评论(0) 推荐(0) 编辑

强烈建议大家把 CBCentralManager.h 里面的代理方法全部看一遍(就是翻译一遍,别偷懒)。@file CBCentralManager.h
摘要:/*先注释再编写 * @file CBCentralManager.h * @framework CoreBluetooth * * @discussion Entry point to the central role. * * @copyright 2011 Apple, Inc. All ri 阅读全文

posted @ 2016-09-09 15:12 高彰 阅读(6241) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示