22. High-level API Reference
164
www.yoctopuce.com
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
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
,
errmsg
)
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.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...