Télécharger Imprimer la page

Yoctopuce YoctoHub-Wireless-g Mode D'emploi page 199

Publicité

network→set_periodicCallbackSchedule()
network→setPeriodicCallbackSchedule()
Configure la planification de callbacks HTTP périodiques (fonction simplifiée).
function set_periodicCallbackSchedule( interval, offset)
js
int set_periodicCallbackSchedule( string interval, int offset)
cpp
-(int) setPeriodicCallbackSchedule : (NSString*)
m
function set_periodicCallbackSchedule( interval: string,
pas
function set_periodicCallbackSchedule( ) As Integer
vb
int set_periodicCallbackSchedule( string interval, int offset)
cs
int set_periodicCallbackSchedule( String interval, int offset)
java
async Task<int> set_periodicCallbackSchedule( string interval,
uwp
set_periodicCallbackSchedule( interval, offset)
py
function set_periodicCallbackSchedule( $interval, $offset)
php
async set_periodicCallbackSchedule( interval, offset)
es
YNetwork
target
cmd
Paramètres :
la périodicité du callback sous forme textuelle, exprimée en secondes, minutes ou en heures. Par
interval
exemple: "60s", "5m", "1h", "48h".
offset
un entier décrivant le décalage du callback par rapport au début de la période. Par exemple, si la
périodicité est 24h, un offset de 7 déclanchera le callback chaque jour à 7h du matin.
Retourne :
YAPI_SUCCESS
On failure, throws an exception or returns a negative error code.
www.yoctopuce.com
: (int)
set_periodicCallbackSchedule
when the call succeeds.
interval
offset
offset: LongInt): LongInt
int offset)
interval offset
11. Référence de l'API de haut niveau
YNetwork
195

Publicité

loading