bleNotifyRelease (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

LX2

Firmware version:

2.20.00


 

This function releases the notification 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 notification.

-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 notification.

-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 notification

 

 

Declaration:

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

 

 

Example:

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