Skip to main content

Class CharacteristicInt32

Represents a Bluetooth characteristic with an integer (Int32) value.

Assembly: Meadow.dll
View Source
public class CharacteristicInt32 : Characteristic<int>, ICharacteristic, IAttribute, IJsonSerializable

Inheritance: System.Object -> Meadow.Gateways.Bluetooth.Characteristic -> Meadow.Gateways.Bluetooth.Characteristic<T>

Implements:
Meadow.Gateways.Bluetooth.ICharacteristic, Meadow.Gateways.Bluetooth.IAttribute, Meadow.Gateways.Bluetooth.IJsonSerializable

Methods

HandleDataWrite(byte[])

Handles the data write for the characteristic.

View Source
public override void HandleDataWrite(byte[] data)
Parameters
TypeNameDescription
System.Byte[]dataThe data to be written.

SerializeValue(int)

Serializes the integer value to a byte array.

View Source
protected override byte[] SerializeValue(int value)
Returns

System.Byte[]: The byte array representing the serialized value.

Parameters
TypeNameDescription
System.Int32valueThe integer value to be serialized.

Implements