![Yoctopuce Yocto-GPS Скачать руководство пользователя страница 164](http://html1.mh-extra.com/html/yoctopuce/yocto-gps/yocto-gps_user-manual_3415557164.webp)
20. High-level API Reference
YAPI
YAPI.SetTimeout()
ySetTimeout()
Invoke the specified callback function after a given timeout.
js
function ySetTimeout(
callback
,
ms_timeout
,
args
)
nodejs
function SetTimeout(
callback
,
ms_timeout
,
arguments
)
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-GPS
Страница 1: ...Yocto GPS User s guide...
Страница 2: ......
Страница 6: ...22 Characteristics 557 Blueprint 559 Index 561...
Страница 10: ...4 www yoctopuce com...
Страница 14: ...8 www yoctopuce com...
Страница 18: ...12 www yoctopuce com...
Страница 22: ...16 www yoctopuce com...
Страница 38: ...32 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 54: ...48 www yoctopuce com...
Страница 72: ...66 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 122: ...116 www yoctopuce com...
Страница 132: ...126 www yoctopuce com...
Страница 159: ...20 High level API Reference On failure throws an exception or returns a negative error code www yoctopuce com 153...
Страница 564: ...22 Characteristics 558 www yoctopuce com...
Страница 565: ......
Страница 566: ......