btleDescriptorWrite()

This function tries to write a descriptor to a service.

Synopsis

int btleDescriptorWrite(int serviceId, string characteristicUUID, string uuid, blob value);

Parameters

Parameter Description
serviceId The Id of the Service
characteristicUUID The uuid of the characteristic.
uuid The uuid of the descriptor.
value The cached descriptor value.

Return Value

Returns 0 on success. On error the return value is one of:

-1 ... illegal arguments passed

1 ... OperationError

3 ... DescriptorWriteError

4 ... UnknownError

Description

The function will try to write a descriptor from a characteristic, given by its uuid, to the service, which must be connected by a call to btleServiceConnect().

Assignment

Mobile UI control functions

Availability

UI

See also

btleDescriptorRead(), btleServiceConnect()