Skip to content

Modules.BLE.DescriptorRequest

A request that uses the Attribute Protocol (ATT).

The class represents Attribute Protocol (ATT) read and write requests from remote central devices (represented by Central objects). Remote centrals use these ATT requests to read and write descriptor's values on local peripherals (represented by PeripheralManager objects). Local peripherals, on the other hand, use the properties of Request objects to respond to the read and write requests appropriately, using the respondToDescriptorRequest() method of the PeripheralManager class.

Extends: Titanium.Proxy · Since: 1.1.0 · Platforms: android

Properties #

central#

Type: Modules.BLE.Central

The central that originated the request.

descriptor#

Type: Modules.BLE.Descriptor

The descriptor whose value will be read or written.

offset#

Type: Number

The offset given for the value

responseNeeded#

Type: Boolean

If the remote device requires a response.

If this property is true then user need to call respondToRequest method.

value#

Type: Titanium.Buffer

The data being read or written.

Methods #

updateValue #

update the data of value field

Parameters:
NameTypeSummaryOptional
valueTitanium.BufferTitanium.Buffer object to update data on valueNo

Returns: void

Titanium SDK Documentation