Skip to main content

Class CharacteristicBool

Represents a Bluetooth characteristic with a boolean value.

Assembly: Meadow.dll
View Source
Declaration
public class CharacteristicBool : Characteristic<bool>, 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
TypeNameDescription
System.Byte[]dataThe data to be written.

SerializeValue(bool)

Serializes the boolean value to a byte array.

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

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

Parameters
TypeNameDescription
System.BooleanvalueThe boolean value to be serialized.

Implements