Yoctopuce YoctoHub-Ethernet Mode D'emploi page 148

Table des Matières

Publicité

10. Référence de l'API de haut niveau
network→get_ipAddress()
network→ipAddress()
Retourne l'adresse IP utilisée par le module Yoctopuce.
function get_ipAddress( )
js
string get_ipAddress( )
cpp
-(NSString*) ipAddress
m
string get_ipAddress( ): string
pas
function get_ipAddress( ) As String
vb
string get_ipAddress( )
cs
String get_ipAddress( )
java
async Task<string> get_ipAddress( )
uwp
get_ipAddress( )
py
function get_ipAddress( )
php
async get_ipAddress( ): Promise<string>
ts
async get_ipAddress( )
es
string get_ipAddress( )
dnp
string get_ipAddress( )
cp
YNetwork
target
cmd
Il peut s'agir d'une adresse configurée statiquement, ou d'une adresse reçue par un serveur DHCP.
Retourne :
une chaîne de caractères représentant l'adresse IP utilisée par le module Yoctopuce
En cas d'erreur, déclenche une exception ou retourne
144
get_ipAddress
YNetwork.IPADDRESS_INVALID
YNetwork
.
www.yoctopuce.com

Publicité

Table des Matières
loading

Table des Matières