Yi *_*ang 3 ios bluetooth-lowenergy ibeacon
Apple发布了采用iBeacons技术的iOS 7.Apple是否会发布有关此iBeacons技术的更多详细信息?
在我的项目中,我将创建一个iBeacons.我怎样才能选择iBeacons的UUID?是否有生成iBeacons UUID的规则?我可以使用随机数作为UUID吗?
小智 9
您可以在终端中使用uuidgen命令生成UUID,创建NSUUID,然后实例化CLBeaconRegion实例:
NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"10D39AE7-020E-4467-9CB2-DD36366F899D"];
CLBeaconRegion *region = [CLBeaconRegion initWithProximityUUID:uuid
identifier:@"unique region identifier"];
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅WWDC 2013中Apple的AirLocate示例项目,或者您可以在此处查看我的博客以获取更多信息:http://www.captechconsulting.com/blog/christopher-mann/ios-7-tutorial-series-core-location-信标.
如果您的问题更多的是关于在哪里为iBeacon app生成邻近UUID,我建议使用我们创建的免费在线应用程序OpenUUID:
除了为您的应用生成唯一的邻近UUID(OpenUUID检测到冲突,即使它们的概率在天文数字上很小),OpenUUID允许您访问先前生成的UUID列表,以便您可以跟踪它们.希望服务有所帮助......
| 归档时间: |
|
| 查看次数: |
8653 次 |
| 最近记录: |