kontaktio / kontakt-ios-sdk

This SDK makes it easy for you to configure, monitor, and securely update Kontakt.io Beacons through our Kontakt.io API.
http://developer.kontakt.io
Other
48 stars 9 forks source link

Is there any way to create KTKDevice instance other than using kontakt.io api? #77

Closed joeydebreuk closed 5 years ago

joeydebreuk commented 5 years ago

I want to get the following properties from available beacons:

Using KTKDevicesManager I can only get KTKNearbyDevice, which doesnt have all properties. Using KTKBeaconManager I can only get CLBeacon, which doesnt include batteryLevel. I need to find a way to get KTKDevice to get all properties, but in the examples I can only find how to create the class via the API. This seems like unnecessary requests to me which I would like to avoid. All this info should available via bluetooth only.

Is there any way or should I see if I can do with batteryLevel and uniqueId?

joeydebreuk commented 5 years ago

I was hoping to be able to cast CLBeacon into KTKNearbyDevice but this doesn't seem to be the case. Ended up using both KTKDevicesManager and KTKBeaconManager simultaneously