语言

BluetoothGattCharacteristic.GetFloatValue(GattFormat, Int32) 方法

定义

返回此特征的存储值。

[Android.Runtime.Register("getFloatValue", "(II)Ljava/lang/Float;", "GetGetFloatValue_IIHandler")]
public virtual Java.Lang.Float? GetFloatValue(Android.Bluetooth.GattFormat formatType, int offset);
[<Android.Runtime.Register("getFloatValue", "(II)Ljava/lang/Float;", "GetGetFloatValue_IIHandler")>]
abstract member GetFloatValue : Android.Bluetooth.GattFormat * int -> Java.Lang.Float
override this.GetFloatValue : Android.Bluetooth.GattFormat * int -> Java.Lang.Float

参数

formatType
GattFormat

用于解释特征值的格式类型。

offset
Int32

可在其中找到浮点值的偏移量。

返回

如果请求的偏移量超过值大小,则给定偏移量处的特征的缓存值或 null。

特性

注解

返回此特征的存储值。

有关详细信息,请参阅#getValue。

此成员已弃用。 用于 BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic) 获取特征值

Java文档android.bluetooth.BluetoothGattCharacteristic.getFloatValue(int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于