Télécharger Imprimer la page

Yoctopuce Yocto-PT100 Mode D'emploi page 208

Publicité

22. Référence de l'API de haut niveau
YAPI.TestHub()
YAPI.TestHub()
Test si un hub est joignable.
YRETCODE yTestHub( string url, int mstimeout, string errmsg)
cpp
+(YRETCODE) TestHub : (NSString*)
m
integer yTestHub( url: string,
pas
function yTestHub( ByVal
vb
static int TestHub( string url, int mstimeout, ref string errmsg)
cs
static string TestHub( string url, int mstimeout)
dnp
int TestHub( String url, int mstimeout)
java
async Task<int> TestHub( string url, uint mstimeout)
uwp
TestHub( url, mstimeout, errmsg=None)
py
function yTestHub( $url, $mstimeout, &$errmsg)
php
async TestHub( url, mstimeout, errmsg)
es
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.
le nombre de millisecondes disponible pour tester la connexion.
mstimeout
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.
202
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é

loading