System.Bluetooth.TBluetoothGattCharacteristic.SetValueAsSingle
Delphi
procedure SetValueAsSingle(AValue: Single; Offset: Integer = 0; AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.IEEE754_32bit_floating_point);
C++
void __fastcall SetValueAsSingle(float AValue, int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x14));
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattCharacteristic |
説明
キャラクタリスティックの値を、引数で指定された Single 値 AValue
に設定します。
SetValueAsSingle には次の 3 つの引数が必要です。
AFormatType
|
設定アクセサ |
---|---|
Unsigned8bitInteger | データ型 Single で SetValueAs を呼び出します。
|
AFormatType
が IEEE754_32bit_floating_point
でない場合は、形式の例外が発生します。