上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
  2017年4月10日
摘要: 去App Store搜索并下载“LightBlue”这个App,对调试你的app和理解Core Bluetooth会很有帮助。 Demo下载地址:http://download.csdn.net/detail/jimoduwu/7146875 Core Bluetooth for iOS 6 Cor 阅读全文
posted @ 2017-04-10 17:39 廖利君 阅读(319) 评论(0) 推荐(0) 编辑
摘要: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ <br> <br> if(launchOptions) <br> <br> { 阅读全文
posted @ 2017-04-10 17:38 廖利君 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 上一次我们研究完iBeacon,发现iBeacon是基于蓝牙4.0的一个封装而已。那么,今天我们来研究iOS的蓝牙4.0的应用。最出名的app当属lightblue,我们不妨来仿写一个lightblue,这样基本的ios蓝牙编程就算入门了。 基本理论 框架与概念 在ios中使用蓝牙技术,会用到Cor 阅读全文
posted @ 2017-04-10 17:37 廖利君 阅读(1686) 评论(1) 推荐(0) 编辑
摘要: 小引 随着穿戴设备和智能家居的热情不断,app蓝牙的开发也很火热,基于iOS蓝牙的开发资料有不少,但是最最值得学习的必然是apple自家的文档啦,我之前的项目基于蓝牙4.0,开发过程中用到Core Bluetooth框架,算是我学习的笔记吧!涉及到几个部分,我打算分开把他们整理出来,本篇文章通过对C 阅读全文
posted @ 2017-04-10 17:33 廖利君 阅读(308) 评论(0) 推荐(0) 编辑
摘要: int iVisen = 1000; - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //int代码块 int mu 阅读全文
posted @ 2017-04-10 17:31 廖利君 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1建立中心角色 1 2 3 #import <CoreBluetooth/CoreBluetooth.h> CBCentralManager *manager; manager = [[CBCentralManager alloc] initWithDelegate:self queue:nil]; 阅读全文
posted @ 2017-04-10 17:30 廖利君 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 蓝牙常见名称和缩写 MFI make for ipad ,iphone, itouch 专们为苹果设备制作的设备 BLE buletouch low energy,蓝牙4.0设备因为低耗电,所以也叫做BLE peripheral,central == 外设和中心,发起连接的时central,被连接的 阅读全文
posted @ 2017-04-10 17:20 廖利君 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 在写这个博客之前,空余时间抽看了近一个月的文档和Demo,系统给的解释很详细,接口也比较实用,唯独有一点,对于设备的唯一标示,网上众说纷纭,在这里我目前也还没有自己的见解,只是在不断的测试各种情况,亲测同一设备的UUID对于每台iPhone设备都不一样,只能尽量保证设备的唯一性,特别是自动重连的过程 阅读全文
posted @ 2017-04-10 17:18 廖利君 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 开发前: 1、profileprofile可以理解为一种规范,一个标准的通信协议,它存在于从机中。蓝牙组织规定了一些标准的profile,例如 HID OVER GATT ,防丢器 ,心率计等。每个profile中会包含多个service,每个service代表从机的一种能力。 2、services 阅读全文
posted @ 2017-04-10 17:16 廖利君 阅读(1230) 评论(0) 推荐(0) 编辑
摘要: 上一篇文章介绍了蓝牙的技术知识,这里我们具体说明一下中心模式的应用场景。主设备(手机去扫描连接外设,发现外设服务和属性,操作服务和属性的应用。一般来说,外设(蓝牙设备,比如智能手环之类的东西), 会由硬件工程师开发好,并定义好设备提供的服务,每个服务对于的特征,每个特征的属性(只读,只写,通知等等) 阅读全文
posted @ 2017-04-10 17:15 廖利君 阅读(287) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页