Télécharger Imprimer la page

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

Publicité

network→useStaticIP()
Modifie la configuration de l'interface réseau pour utiliser une adresse IP assignée manuellement
(adresse IP statique).
function useStaticIP( ipAddress, subnetMaskLen, router)
js
int useStaticIP( string ipAddress, int subnetMaskLen, string router)
cpp
-(int) useStaticIP : (NSString*)
m
function useStaticIP( ipAddress: string,
pas
function useStaticIP( ) As Integer
vb
int useStaticIP( string ipAddress,
cs
int useStaticIP( String ipAddress,
java
async Task<int> useStaticIP( string ipAddress,
uwp
useStaticIP( ipAddress, subnetMaskLen, router)
py
function useStaticIP( $ipAddress, $subnetMaskLen, $router)
php
async useStaticIP( ipAddress, subnetMaskLen, router)
es
YNetwork
target
cmd
N'oubliez pas d'appeler la méthode
paramètre soit appliqué.
Paramètres :
adresse IP à utiliser par le module
ipAddress
subnetMaskLen
longueur du masque de sous-réseau à utiliser. Par exemple, la valeur 24 représente
255.255.255.0.
router
adresse IP de la passerelle à utiliser ("default gateway")
Retourne :
YAPI_SUCCESS
En cas d'erreur, déclenche une exception ou retourne un code d'erreur négatif.
www.yoctopuce.com
ipAddress
: (int)
subnetMaskLen
: (NSString*)
router
subnetMaskLen: LongInt,
router: string): LongInt
int subnetMaskLen,
string router)
int subnetMaskLen,
String router)
int subnetMaskLen,
string router)
useStaticIP
ipAddress subnetMaskLen router
saveToFlash()
si l'opération se déroule sans erreur.
11. Référence de l'API de haut niveau
et de redémarrer le module pour que le
YNetwork
205

Publicité

loading