Télécharger Imprimer la page

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

Publicité

network→set_callbackEncoding()
network→setCallbackEncoding()
Modifie l'encodage à utiliser pour représenter les valeurs notifiées par callback.
function set_callbackEncoding( newval)
js
int set_callbackEncoding( Y_CALLBACKENCODING_enum newval)
cpp
-(int) setCallbackEncoding : (Y_CALLBACKENCODING_enum)
m
function set_callbackEncoding( newval: Integer): integer
pas
function set_callbackEncoding( ByVal
vb
int set_callbackEncoding( int newval)
cs
int set_callbackEncoding( int newval)
java
async Task<int> set_callbackEncoding( int newval)
uwp
set_callbackEncoding( newval)
py
function set_callbackEncoding( $newval)
php
async set_callbackEncoding( newval)
es
YNetwork
target
cmd
N'oubliez pas d'appeler la méthode
Paramètres :
newval
une valeur parmi
Y_CALLBACKENCODING_JSON_ARRAY
Y_CALLBACKENCODING_YOCTO_API
Y_CALLBACKENCODING_EMONCMS
Y_CALLBACKENCODING_INFLUXDB
Y_CALLBACKENCODING_YOCTO_API_JZON
représentant l'encodage à utiliser pour représenter les valeurs notifiées par callback
Retourne :
YAPI_SUCCESS
En cas d'erreur, déclenche une exception ou retourne un code d'erreur négatif.
www.yoctopuce.com
newval
set_callbackEncoding
saveToFlash()
Y_CALLBACKENCODING_FORM
si l'opération se déroule sans erreur.
newval
As Integer) As Integer
newval
du module si le réglage doit être préservé.
Y_CALLBACKENCODING_JSON
,
,
Y_CALLBACKENCODING_CSV
Y_CALLBACKENCODING_JSON_NUM
,
,
Y_CALLBACKENCODING_AZURE
Y_CALLBACKENCODING_MQTT
,
et
Y_CALLBACKENCODING_PRTG
11. Référence de l'API de haut niveau
YNetwork
,
,
,
,
,
183

Publicité

loading