Yoctopuce Yocto-Thermocouple Mode D'emploi page 220

Table des Matières

Publicité

24. Référence de l'API de haut niveau
YAPI.TestHub()
YAPI.TestHub()
Test si un hub est joignable.
YRETCODE TestHub( string url, int mstimeout, string errmsg)
cpp
+(YRETCODE) TestHub : (NSString*)
m
integer yTestHub( url: string,
pas
function TestHub( ByVal
vb
static int TestHub( string url, int mstimeout, ref string errmsg)
cs
int TestHub( String url, int mstimeout)
java
async Task<int> TestHub( string url, uint mstimeout)
uwp
TestHub( url, mstimeout, errmsg=None)
py
function TestHub( $url, $mstimeout, &$errmsg)
php
async TestHub( url: string, mstimeout: number, errmsg: YErrorMsg): Promise<number>
ts
async TestHub( url, mstimeout, errmsg)
es
static string TestHub( string url, int mstimeout)
dnp
static string TestHub( string url, int mstimeout)
cp
Cette méthode n'enregistre pas le hub, elle ne fait que de vérifier que le hub est joignable. Le
paramètre url suit les mêmes conventions que la méthode
pour vérifier les paramètres d'authentification d'un hub. Il est possible de forcer la méthode à rendre la
main après mstimeout millisecondes.
Paramètres :
url
une chaîne de caractères contenant "usb","callback", ou l'URL racine du VirtualHub à utiliser.
mstimeout
le nombre de millisecondes disponible pour tester la connexion.
errmsg
une chaîne de caractères passée par référence, dans laquelle sera stocké un éventuel
message d'erreur.
Retourne :
YAPI.SUCCESS
si l'opération se déroule sans erreur.
En cas d'erreur retourne un code d'erreur négatif.
214
url
: (int)
mstimeout
: (NSError**)
errmsg
mstimeout: integer,
var errmsg: string): integer
url
As String,
ByVal
mstimeout
As Integer,
ByRef
errmsg
As String) As Integer
. Cette méthode est utile
yRegisterHub
YAPI
www.yoctopuce.com

Publicité

Table des Matières
loading

Table des Matières