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
LongInt set_periodicCallbackSchedule( interval: string,
pas
function set_periodicCallbackSchedule( ByVal
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: string, offset: number): Promise<number>
ts
async set_periodicCallbackSchedule( interval, offset)
es
int set_periodicCallbackSchedule( string interval, int offset)
dnp
int set_periodicCallbackSchedule( string interval, int offset)
cp
YNetwork
target
cmd
Paramètres :
interval
la périodicité du callback sous forme textuelle, exprimée en secondes, minutes ou en heures. Par
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
interval
As String,
ByVal
offset
As Integer) As Integer
int offset)
interval offset
8. Référence de l'API de haut niveau
YNetwork
265