21. 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
function hasFunction( funcId: string): boolean
pas
function hasFunction( ) As Boolean
vb
bool hasFunction( string funcId)
cs
boolean hasFunction( String funcId)
java
Task<bool> hasFunction( string funcId)
uwp
def hasFunction( funcId)
py
function hasFunction( $funcId)
php
function 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
226
funcId
hasFunction
funcId
YModule
www.yoctopuce.com