Kontakt iBeacon返回零 [英] Kontakt iBeacon returning nil

查看:170
本文介绍了Kontakt iBeacon返回零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,该应用程序显示iBeacons的属性,该品牌是Estimote和Kontakt.

I have an app which is showing properties of iBeacons which brand of Estimote and Kontakt.

我在Kontakt iBeacons上遇到问题.问题是 ; Kontakt iBeacons的某些properties返回nil,其属性为firmwarepasswordmanagerUUID.我在Estimote中也遇到了同样的问题,但是在Estimote委托中使用了connect方法来解决.

I have a problem with Kontakt iBeacons. The problem is ; some properties of Kontakt iBeacons are returning nil which properties are firmware,password and managerUUID. I had a same problem with Estimote but I solved with used connect method in Estimote delegate.

如何connect Kontakt iBeacon?互联网上没有足够的文档.我什么都找不到.如果我将其连接,我认为,它将显示所有属性.有人可以帮助我吗?

How can I connect Kontakt iBeacon? There isn't enough documentation on the Internet. I couldn't find anything. If I connect it, I think, It will show all properties. Anybody can help me ?

谢谢哈利尔.

推荐答案

首先,互联网上有足够的文档,在我们的网站上,您具有SDK的完整文档-

First thing first, there is enough documentation on the internet, on our site you have full documentation of SDK - http://docs.kontakt.io/ios-sdk/appledocs. KTKClient is the class for getting beacons properties from Kontakt's cloud.

有两种获取信标(主要)属性的主要方法:

There are 2 main methods for getting beacons(main) properties:

– deviceByUniqueID:withError:-如果提供了正确的uniqueId,则返回一个KTKBeacon对象

– deviceByUniqueID:withError: - returns one KTKBeacon object if proper uniqueId was provided

– devicesByType:有错误:-返回所有管理者信标的数组(如果类型为KTKDeviceTypeBeacon,则为KTKBeacon对象). 多亏了他们,您将获得有关 managerUUID 的信息.

– devicesByType:withError: - returns array of all manager's beacons(KTKBeacon objects if type was KTKDeviceTypeBeacon). Thanks to them you will get info about managerUUID.

要获取密码,您应该使用:

To get password you should use:

– devicePassword:和MasterPassword:byUniqueId:withError:

要获取当前固件版本,您应该连接到信标并从其特性中读取它.检查类 KTKCharacteristcDescriptor.h 和特征 kKTKCharacteristicDescriptorTypeFirmwareRevision .

To get current firmware version you should connect to beacon and read it from its characteristic. Check class KTKCharacteristcDescriptor.h and characteristic kKTKCharacteristicDescriptorTypeFirmwareRevision.

我希望这个答案能阐明如何获得这些属性.

I hope this answer clarified how to get those properties.

这篇关于Kontakt iBeacon返回零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆