访问电池供电的 iBeacon 设备(主要是 kontakt io 设备)的电池电量? [英] Accessing battery level of battery powered iBeacon devices (mainly kontakt io ones)?

查看:14
本文介绍了访问电池供电的 iBeacon 设备(主要是 kontakt io 设备)的电池电量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一种方法,通过我目前正在开发的 iOS 应用程序从我的信标访问电池电量.我正在使用 Kontakt 的 iBeacon 设备.我浏览了 Estimote iOS SDK,他们提供了一种方法来实现这一点.我想知道它是否能够访问原始信标数据包并手动提取数据,因为我知道信标数据包结构和信息.

I am trying to find a way to access the battery levels from my beacons through an iOS application I am currently working on. I am using Kontakt's iBeacon devices. I browsed the Estimote iOS SDK and they provide a method to achieve this. I was wondering if it is at all able to access the raw beacon packet and manually extract the data since I know the beacon packet structure and the information is there.

关于如何通过这里提到的方法或任何其他方式实现这一目标的任何想法?

Any thoughts on how to achieve this by the method mentioned here or any other way?

谢谢各位.

推荐答案

这是来自 kontakt.io 的 Rafal.首先,感谢您选择我们,这对我们来说意义重大.

This is Rafal from kontakt.io. Firstly, let me thank you for choosing us, it means a lot for us.

电池电量的传播不是 iBeacon 的标准,也不是任何 iBeacon 官方文档中的标准,因此这就是您无法使用自定义 SDK 找到值的原因.我们的 iBeacon 正在扫描响应数据包中传播电池电量,可以使用 iOS 中的 CoreBluetooth API 发现该数据包.级别为数据包中第 23 个字节处的一个字节值.

Propagation of battery level is not standard for iBeacons nor it is in any official iBeacon documentation, so that is why you cannot find the value using custom SDKs. Our iBeacons are propagating battery level in scan response packet which may be discovered using CoreBluetooth API in iOS. The level is one byte value at the 23rd byte in the packet.

希望有帮助:)

这篇关于访问电池供电的 iBeacon 设备(主要是 kontakt io 设备)的电池电量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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