bleIndicationRelease (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

LX2

Firmware version:

2.20.00


 

This function releases the indication callback function from a characteristic.

 

 

Input:

dev: SYSHANDLE

Handle to the device.

 

char : UINT

The ID of the characteristic.

 

Returns: INT

1

-

_BLE_OK


Success

0

-

_BLE_ERR_NOT_SUPPORTED


The API is not supported.

-1

-

_BLE_ERR_NOT_OPEN


The interface is not powered(see blePower).

-8

-

_BLE_ERR_INVAL


Characteristic does not support indications.

-9

-

_BLE_ERR_NODATA


Characteristic not found

-19

-

_BLE_ERR_NOT_CONNECTED


Device is not connected.

-17

 

_BLE_ERR_TIMEOUT


Timed out when trying to disable indication.

-20

-

_BLE_ERR_INVAL_HANDLE


Invalid handle.

-21

-

_BLE_ERR_NO_CACHE


No cache found, use bleServiceCacheUpdate to update the cache.

-99

-

_BLE_ERR_GENERIC


Failed to disable indication

 

 

Declaration:

FUNCTION bleIndicationRelease : INT;
VAR_INPUT
  dev    : SYSHANDLE;
  char   : INT;
END_VAR;

 

 

Example:

...
// Release indication callback for characteristic 10
rc := bleIndicationRelease(dev := dev, char := 10);
...