bleDeviceCacheDelete (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

LX2

Firmware version:

2.25.00


 

This function deletes the service cache for a connected device or for all devices.

See bleServiceCacheUpdate for details about the cache.

 

Input:

dev: SYSHANDLE

Handle to the device to delete the cache for. If not provided, it will delete the cache for all devices.

 

 

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

-4

-

_BLE_ERR_NOT_FOUND


Failed to find device.

-99

-

_BLE_ERR_GENERIC


Failed to delete cache

 

 

Declaration:

FUNCTION bleDeviceCacheDelete : INT;
VAR_INPUT
  dev   : SYSHANDLE;
END_VAR;

 

Example:

...
  rc := bleDeviceCacheDelete(dev := dev);
  DebugFmt(message:="bleDeviceCacheDelete: \1", v1:=rc);
...