
21. High-level API Reference
YAPI
YAPI.TestHub()
yTestHub()
Test if the hub is reachable.
cpp
YRETCODE yTestHub( const string&
url
, int
mstimeout
, string&
errmsg
)
m
+(YRETCODE) TestHub : (NSString*)
url
: (int)
mstimeout
: (NSError**)
errmsg
pas
function yTestHub(
url
: string,
mstimeout
: integer,
var
errmsg
: string): integer
vb
function yTestHub( ByVal
url
As String,
ByVal
mstimeout
As Integer,
ByRef
errmsg
As String) As Integer
cs
int TestHub( string
url
, int
mstimeout
, ref string
errmsg
)
java
int TestHub( String
url
, int
mstimeout
)
uwp
async Task<int> TestHub( string
url
, uint
mstimeout
)
py
def TestHub(
url
,
mstimeout
,
errmsg
=None)
php
function yTestHub(
$url
,
$mstimeout
,
&$errmsg
)
es
function TestHub(
url
,
mstimeout
)
This method do not register the hub, it only test if the hub is usable. The url parameter follow the same
convention as the
RegisterHub
method. This method is useful to verify the authentication
parameters for a hub. It is possible to force this method to return after mstimeout milliseconds.
Parameters :
url
a string containing either "usb","callback" or the root URL of the hub to monitor
mstimeout
the number of millisecond available to test the connection.
errmsg
a string passed by reference to receive any error message.
Returns :
YAPI_SUCCESS
when the call succeeds.
On failure returns a negative error code.
www.yoctopuce.com
161
Содержание 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: ......