
21. High-level API Reference
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.
158
www.yoctopuce.com
Содержание Yocto-RangeFinder
Страница 1: ...Yocto RangeFinder User s guide...
Страница 2: ......
Страница 18: ...12 www yoctopuce com...
Страница 26: ...20 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 70: ...gcc lyocto lm lpthread lusb 1 0 lstdc 10 Using Yocto RangeFinder with C 64 www yoctopuce com...
Страница 90: ...84 www yoctopuce com...
Страница 120: ...114 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...21 High level API Reference On failure throws an exception or returns a negative error code 152 www yoctopuce com...
Страница 484: ...478 www yoctopuce com...
Страница 488: ...482 www yoctopuce com...
Страница 490: ...23 Characteristics 484 www yoctopuce com...
Страница 491: ......
Страница 492: ......