GattCharacteristic


public final class GattCharacteristic


Represents a Bluetooth characteristic.

Summary

Constants

static final int

It permits broadcasts of the characteristic.

static final int

Additional characteristic properties are defined.

static final int

It permits indications of a characteristic value with acknowledgment.

static final int

It permits notifications of a characteristic value without acknowledgment.

static final int

It permits reads of the characteristic.

static final int

It permits signed writes to the characteristic value.

static final int

It permits writes of the characteristic with response.

static final int

It permits writes of the characteristic without response.

Public constructors

GattCharacteristic(@NonNull UUID uuid, int properties)

Public methods

final int

The properties of the characteristic.

final @NonNull UUID

The UUID of the characteristic.

Constants

PROPERTY_BROADCAST

public static final int PROPERTY_BROADCAST

It permits broadcasts of the characteristic.

PROPERTY_EXTENDED_PROPS

public static final int PROPERTY_EXTENDED_PROPS

Additional characteristic properties are defined.

PROPERTY_INDICATE

public static final int PROPERTY_INDICATE

It permits indications of a characteristic value with acknowledgment.

PROPERTY_NOTIFY

public static final int PROPERTY_NOTIFY

It permits notifications of a characteristic value without acknowledgment.

PROPERTY_READ

public static final int PROPERTY_READ

It permits reads of the characteristic.

PROPERTY_SIGNED_WRITE

public static final int PROPERTY_SIGNED_WRITE

It permits signed writes to the characteristic value.

PROPERTY_WRITE

public static final int PROPERTY_WRITE

It permits writes of the characteristic with response.

PROPERTY_WRITE_NO_RESPONSE

public static final int PROPERTY_WRITE_NO_RESPONSE

It permits writes of the characteristic without response.

Public constructors

GattCharacteristic

Added in 1.0.0-alpha02
public GattCharacteristic(@NonNull UUID uuid, int properties)

Public methods

getProperties

Added in 1.0.0-alpha02
public final int getProperties()

The properties of the characteristic.

getUuid

Added in 1.0.0-alpha02
public final @NonNull UUID getUuid()

The UUID of the characteristic.