08 2014 档案

摘要:var date = NSDate.date() var timeFormatter = NSDateFormatter()timeFormatter.dateFormat = "MM-dd 'at' HH:mm:ss.SSS"var time = timeFormatter.stri... 阅读全文

posted @ 2014-08-29 13:16 SCaptain 阅读(736) 评论(0) 推荐(0)

摘要:蓝牙的重连主要分为以下两种:1、恢复一些已知的设备,已知的设备就是在此次操作之前你扫描到的或者已经连接过的设备。用retrievePeripheralsWithIdentifiers:函数去完成回复操作。Retrieve a list of known peripherals—periphera... 阅读全文

posted @ 2014-08-28 19:28 SCaptain 阅读(1195) 评论(0) 推荐(0)

摘要:今天App写到了蓝牙重连的阶段,以前针对sdk 6.0写的代码,蓝牙设备的回复是通过- (void)retrievePeripherals:(NSArray *)peripheralUUIDs然后回调 centralManager:didRetrievePeripherals:函数来得到可以回复... 阅读全文

posted @ 2014-08-28 19:02 SCaptain 阅读(3259) 评论(0) 推荐(0)

摘要:偷个懒,看到了个比较靠谱的答案,直接复制过来了。原网址:http://stackoverflow.com/questions/24024549/dispatch-once-singleton-model-in-swiftFrom my short experience with Swift ther... 阅读全文

posted @ 2014-08-19 15:55 SCaptain 阅读(1008) 评论(0) 推荐(1)

摘要:看过一些蓝牙App的事例,大体上对蓝牙的连接过程进行了了解。但是开始真正自己写一个小的BLE程序的时候就举步维艰了。那些模棱两可的概念在头脑中瞬间就蒸发了,所以还是决定从最基本的蓝牙连接过程进行。这里所说的蓝牙是针对 bluetooth 4.0的。 第一步就是去看官方的关于蓝牙框架的文档,即C... 阅读全文

posted @ 2014-08-18 20:39 SCaptain 阅读(10995) 评论(4) 推荐(1)

摘要:Except that on android you can bypass the pairing dialog if you know the PIN in advance through a different channel.EtanOn 06.02.2013, at 10:09, "Andr... 阅读全文

posted @ 2014-08-18 18:35 SCaptain 阅读(490) 评论(0) 推荐(0)

摘要:Client–server modelFrom Wikipedia, the free encyclopediaThe client–server model of computing is a distributed application structure that partitions ta... 阅读全文

posted @ 2014-08-16 09:59 SCaptain 阅读(504) 评论(0) 推荐(0)

导航