bleServiceCacheUpdate (Function) |
Top Previous Next |
This function tries to update the service cache for a connected device.
The service cache is used to cache all the services and characteristics of the device, so it is not necessary to read them all every time the device is connected. This makes it possible to quickly connect to a device, read or write a value and disconnect again.
This cache is persistent across runtime resets and is deleted on system resets( boardReset(level := 1) ).
To manually delete the cache for a single device or for all devices, see bleDeviceCacheDelete.
Input: dev: SYSHANDLE Handle to the device to update the cache for.
Returns: INT
Declaration: FUNCTION bleServiceCacheUpdate : INT;
Example: ... |