Yoctopuce Yocto-GPS-V2 Mode D'emploi page 280

Table des Matières

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( ByVal
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
274
callback
callback
As YModuleBeaconCallback) As Integer
null
YModule
www.yoctopuce.com

Publicité

Table des Matières
loading

Table des Matières