22. High-level API Reference
www.yoctopuce.com
213
YModule
module
→
load()
Preloads the module cache with a specified validity duration.
js
function load(
msValidity
)
cpp
YRETCODE load( int
msValidity
)
m
-(YRETCODE) load : (u64)
msValidity
pas
function load(
msValidity
: u64): YRETCODE
vb
function load( ByVal
msValidity
As Long) As YRETCODE
cs
YRETCODE load( ulong
msValidity
)
java
int load( long
msValidity
)
py
def load(
msValidity
)
php
function load(
$msValidity
)
es
function load(
msValidity
)
By default, whenever accessing a device, all module attributes are kept in cache for the standard
duration (5 ms). This method can be used to temporarily mark the cache as valid for a longer period, in
order to reduce network traffic for instance.
Parameters :
msValidity
an integer corresponding to the validity attributed to the loaded module parameters, in
milliseconds
Returns :
YAPI_SUCCESS
when the call succeeds.
On failure, throws an exception or returns a negative error code.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...