Kontakt iBeacon returning nil

爷,独闯天下 提交于 2019-12-24 13:25:45

问题


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

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.

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 ?

Thank you Halil.


回答1:


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: - returns one KTKBeacon object if proper uniqueId was provided

– 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:andMasterPassword:byUniqueId:withError:

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.



来源:https://stackoverflow.com/questions/29742779/kontakt-ibeacon-returning-nil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!