Télécharger Imprimer la page

Yoctopuce Yocto-PT100 Mode D'emploi page 272

Publicité

22. Référence de l'API de haut niveau
module→registerBeaconCallback()
Enregistre une fonction de callback qui sera appelée à chaque changement d'état de la balise de
localisation du module.
function registerBeaconCallback( callback)
js
int registerBeaconCallback( YModuleBeaconCallback callback)
cpp
-(int) registerBeaconCallback : (YModuleBeaconCallback)
m
LongInt registerBeaconCallback( callback: TYModuleBeaconCallback): LongInt
pas
function registerBeaconCallback( ) As Integer
vb
int registerBeaconCallback( BeaconCallback callback)
cs
int registerBeaconCallback( BeaconCallback callback)
java
async Task<int> registerBeaconCallback( BeaconCallback callback)
uwp
registerBeaconCallback( callback)
py
function registerBeaconCallback( $callback)
php
async registerBeaconCallback( callback)
es
La fonction de callback doit accepter deux arguments: l'objet YModule dont la balise a changé, et un
entier représentant l'état de la balise de localisation.
Paramètres :
callback
la fonction de callback à rappeler, ou
266
callback
null
YModule
www.yoctopuce.com

Publicité

loading