- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想在我自己的应用程序中显示 AmazFit Bip Watch
的心率值。
UUID:
00002a37-0000-1000-8000-00805f9b34fb
示例字节数组:
byte[0] = 0
byte[1] = 70
字节数组的计算值:
if (value.length == 2 && value[0] == 0) {
final int hrValue = (value[1] & 0xff);
}
问题:无论我在 watch 上看到什么,我都没有得到正确的值。我希望在我的应用程序中获得我在 watch 中看到的精确值。我提到了Gadgetbridge项目。
我们将不胜感激任何帮助。
最佳答案
尝试以下任一代码:
Byte b = byte[1];
final int hrValue = b.intValue();
或者使用如下的 Byte 构造函数:
Byte b = new Byte(byte[1]);
final int hrValue = b.intValue();
关于android - AmazFit Bip watch - 心率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52566424/
各位开发者,您好 我们不得不等待它,但它终于来了……是吗? 只是一个关于 Watch OS 2 beta 中新心率选项的常规问题。我正在运行的应用程序能否受益于每秒的心率监测,还是我们必须使用每 10
我想在我自己的应用程序中显示 AmazFit Bip Watch 的心率值。 UUID: 00002a37-0000-1000-8000-00805f9b34fb 示例字节数组: byte[0] =
Apple 的文档示例代码通过 add 方法将平均心率 HKQuantitySample 保存到锻炼中,但是对于给定的锻炼,我试图保存在锻炼期间获取的所有心率值锻炼,即 [HKQuantitySamp
我正在开发一个应用程序,我必须在其中读取心跳直到一分钟,并从中计算心率变异性。 为了读取心跳,我使用的是表带(Polar) Heart beat reading code I have used fr
尝试将 Mi Band 与 GATT 服务和特性配对,手环没有响应。 android 和 iOS 的问题相同。仅适用于小米运动官方应用。 除电池、日期和其他信息外,不更新也不通知任何特征的更新。 注意
我是一名优秀的程序员,十分优秀!