
22. High-level API Reference
www.yoctopuce.com
161
YAPI
YAPI.SetTimeout()
ySetTimeout()
Invoke the specified callback function after a given timeout.
js
function ySetTimeout(
callback
,
ms_timeout
,
args
)
es
function SetTimeout(
callback
,
ms_timeout
,
args
)
This function behaves more or less like Javascript
setTimeout
, but during the waiting time, it will call
yHandleEvents
and
yUpdateDeviceList
periodically, in order to keep the API up-to-date with
current devices.
Parameters :
callback
the function to call after the timeout occurs. On Microsoft Internet Explorer, the callback must
be provided as a string to be evaluated.
ms_timeout
an integer corresponding to the duration of the timeout, in milliseconds.
args
additional arguments to be passed to the callback function can be provided, if needed (not
supported on Microsoft Internet Explorer).
Returns :
YAPI_SUCCESS
when the call succeeds.
On failure, throws an exception or returns a negative error code.
Содержание 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...