Télécharger Imprimer la page

Yoctopuce YoctoHub-Wireless-g Mode D'emploi page 65

Publicité

hubport→get_portState()
hubport→portState()
Retourne l'état actuel du port de Yocto-hub.
function get_portState( )
js
Y_PORTSTATE_enum get_portState( )
cpp
-(Y_PORTSTATE_enum) portState
m
function get_portState( ): Integer
pas
function get_portState( ) As Integer
vb
int get_portState( )
cs
int get_portState( )
java
async Task<int> get_portState( )
uwp
get_portState( )
py
function get_portState( )
php
async get_portState( )
es
YHubPort
target
cmd
Retourne :
une valeur parmi
Y_PORTSTATE_RUN
En cas d'erreur, déclenche une exception ou retourne
www.yoctopuce.com
get_portState
Y_PORTSTATE_OFF
Y_PORTSTATE_PROG
et
,
Y_PORTSTATE_OVRLD
représentant l'état actuel du port de Yocto-hub
Y_PORTSTATE_INVALID
11. Référence de l'API de haut niveau
YHubPort
,
Y_PORTSTATE_ON
.
,
61

Publicité

loading