
22. High-level API Reference
www.yoctopuce.com
157
YAPI
YAPI.SetCacheValidity()
ySetCacheValidity()
Change the validity period of the data loaded by the library.
cpp
static void ySetCacheValidity( u64
cacheValidityMs
)
m
+(void) SetCacheValidity : (u64)
cacheValidityMs
pas
procedure ySetCacheValidity(
cacheValidityMs
: u64)
vb
procedure ySetCacheValidity( )
cs
void SetCacheValidity( ulong
cacheValidityMs
)
java
void SetCacheValidity( long
cacheValidityMs
)
uwp
Task SetCacheValidity( ulong
cacheValidityMs
)
py
def SetCacheValidity(
cacheValidityMs
)
php
function ySetCacheValidity(
$cacheValidityMs
)
es
function SetCacheValidity(
cacheValidityMs
)
By default, when accessing a module, all the attributes of the module functions are automatically kept in
cache for the standard duration (5 ms). This method can be used to change this standard duration, for
example in order to reduce network or USB traffic. This parameter does not affect value change
callbacks Note: This function must be called after
yInitAPI
.
Parameters :
cacheValidityMs
an integer corresponding to the validity attributed to the loaded function parameters, in
milliseconds.
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...