Skip to content

Modules.BLE.Characteristic

A characteristic of a remote peripheral’s service.

It represent the characteristics of a remote peripheral’s service. A characteristic contains a single value and any number of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value, and how you access the descriptors.

Extends: Titanium.Proxy · Since: 1.0.0 · Platforms: iphone, ipad

Properties #

descriptors#

Type: Array<Modules.BLE.Descriptor>

A list of the Descriptor* objects that have so far been discovered in this characteristic. It is writeable if this JavaScript object represents a mutable characteristic.

isMutable#

Type: Boolean

Indicates whether this characteristic is mutable.

For android, this property will always return false.

isMutable#

Type: Boolean

Indicates whether this characteristic is mutable.

isNotifying#

Type: Boolean

Whether the characteristic is currently notifying or not.

permissions#

Type: Number

The permissions for this characteristic.

properties#

Type: Number

The properties of the characteristic as a bitfield.

See also CHARACTERISTIC_PROPERTY_* module constants for the possible return values of this property.

service#

Type: Modules.BLE.Service

The service this characteristic belongs to.

uuid#

Type: String

The Bluetooth-specific UUID of the attribute.

value#

Type: Titanium.Buffer

The value of the characteristic.

Methods #

equal #

tests whether two characteristics are same or not.

Parameters:
NameTypeSummaryOptional
characteristicModules.BLE.Characteristicthe characteristic that will be compared.No

Returns: Boolean

Titanium SDK Documentation