# Modules.BLE.Request

A request that uses the Attribute Protocol (ATT).

Availability
1.1.0
1.0.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 characteristic 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 respondToRequest() method of the PeripheralManager class.

# Properties

# central READONLY

Availability
1.1.0
1.0.0

The central that originated the request.


# characteristic READONLY

Availability
1.1.0
1.0.0
characteristic :Modules.BLE.Characteristic

The characteristic whose value will be read or written.


# offset READONLY

Availability
1.1.0
1.0.0
offset :Number

The zero-based index of the first byte for the read or write.


# 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
1.0.0

The data being read or written.

# Methods

# updateValue

Availability
1.1.0
1.0.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