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

查看:172
本文介绍了访问电池供电的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.

电池级别的传播不是iBeacons的标准,也不是任何官方的iBeacon文档,这就是为什么你无法使用自定义SDK找到价值的原因。我们的iBeacons正在传播扫描响应数据包中的电池级别,这可能是在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天全站免登陆