# Modules.BLE.DescriptorRequest

A request that uses the Attribute Protocol (ATT).

Availability
1.1.0

# Overview

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.

# Properties

# central READONLY

Availability
1.1.0

The central that originated the request.


# descriptor READONLY

Availability
1.1.0

The descriptor whose value will be read or written.


# offset READONLY

Availability
1.1.0
offset :Number

The offset given for the value


# responseNeeded READONLY

Availability
1.1.0
responseNeeded :Boolean

If the remote device requires a response.

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


# value READONLY

Availability
1.1.0

The data being read or written.

# Methods

# updateValue

Availability
1.1.0
updateValue(value) void

update the data of value field

Parameters

Name Type Description
value Titanium.Buffer

Titanium.Buffer object to update data on value

Returns

Type
void