Yoctopuce Yocto-I2C Mode D'emploi page 301

Table des Matières

Publicité

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( ByVal
vb
bool hasFunction( string funcId)
cs
boolean hasFunction( String funcId)
java
async Task<bool> hasFunction( string funcId)
uwp
hasFunction( funcId)
py
function hasFunction( $funcId)
php
async hasFunction( funcId: string): Promise<boolean>
ts
async hasFunction( funcId)
es
bool hasFunction( string funcId)
dnp
bool hasFunction( string funcId)
cp
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
www.yoctopuce.com
funcId
funcId
As String) As Boolean
hasFunction
funcId
25. Référence de l'API de haut niveau
YModule
293

Publicité

Table des Matières
loading

Table des Matières