![Yoctopuce Yocto-GPS Скачать руководство пользователя страница 166](http://html1.mh-extra.com/html/yoctopuce/yocto-gps/yocto-gps_user-manual_3415557166.webp)
20. High-level API Reference
YAPI
YAPI.Sleep()
ySleep()
Pauses the execution flow for a specified duration.
js
function ySleep(
ms_duration
,
errmsg
)
nodejs
function Sleep(
ms_duration
,
errmsg
)
cpp
YRETCODE ySleep( unsigned
ms_duration
, string&
errmsg
)
m
+(YRETCODE) Sleep :(unsigned)
ms_duration
:(NSError **)
errmsg
pas
function ySleep(
ms_duration
: integer, var
errmsg
: string): integer
vb
function ySleep( ByVal
ms_duration
As Integer,
ByRef
errmsg
As String) As Integer
cs
int Sleep( int
ms_duration
, ref string
errmsg
)
java
int Sleep( long
ms_duration
)
uwp
async Task<int> Sleep( ulong
ms_duration
)
py
def Sleep(
ms_duration
,
errmsg
=None)
php
function ySleep(
$ms_duration
,
&$errmsg
)
es
function Sleep(
ms_duration
,
errmsg
)
This function implements a passive waiting loop, meaning that it does not consume CPU cycles
significantly. The processor is left available for other threads and processes. During the pause, the
library nevertheless reads from time to time information from the Yoctopuce modules by calling
yHandleEvents()
, in order to stay up-to-date.
This function may signal an error in case there is a communication problem while contacting a module.
Parameters :
ms_duration
an integer corresponding to the duration of the pause, in milliseconds.
errmsg
a string passed by reference to receive any error message.
Returns :
YAPI_SUCCESS
when the call succeeds.
On failure, throws an exception or returns a negative error code.
160
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: ......