Télécharger Imprimer la page

Yoctopuce Yocto-PT100 Mode D'emploi page 264

Publicité

22. Référence de l'API de haut niveau
module→hasFunction()
Teste la présence d'une fonction pour le module courant.
function hasFunction( funcId)
js
bool hasFunction( string funcId)
cpp
-(bool) hasFunction : (NSString*)
m
boolean hasFunction( funcId: string): boolean
pas
function hasFunction( ) As Boolean
vb
bool hasFunction( string funcId)
cs
bool hasFunction( string funcId)
dnp
boolean hasFunction( String funcId)
java
async Task<bool> hasFunction( string funcId)
uwp
hasFunction( funcId)
py
function hasFunction( $funcId)
php
async hasFunction( funcId)
es
YModule
target
cmd
La méthode prend en paramètre l'identifiant de la fonction (relay1, voltage2,...) et retourne un booléen.
Paramètres :
funcId
identifiant matériel de la fonction
Retourne :
vrai si le module inclut la fonction demandée
258
funcId
hasFunction
funcId
YModule
www.yoctopuce.com

Publicité

loading