Class CharacteristicInt32
Represents a Bluetooth characteristic with an integer (Int32) value.
Assembly: Meadow.dll
View Source
Declaration
public class CharacteristicInt32 : Characteristic<int>, ICharacteristic, IAttribute, IJsonSerializable
Inheritance: System.Object
-> Meadow.Gateways.Bluetooth.Characteristic
Implements:
Meadow.Gateways.Bluetooth.ICharacteristic
Methods
HandleDataWrite(byte[])
Handles the data write for the characteristic.
View Source
Declaration
public override void HandleDataWrite(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The data to be written. |
SerializeValue(int)
Serializes the integer value to a byte array.
View Source
Declaration
protected override byte[] SerializeValue(int value)
Returns
System.Byte[]
: The byte array representing the serialized value.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The integer value to be serialized. |