Funzione WiFiConfig_GetClientIdentityWifiConfig_GetClientIdentity function
Intestazione: #include <applibs/wificonfig.h>Header: #include <applibs/wificonfig.h>
Ottiene l'identità client della rete.Gets the client identity of the network.
static int WifiConfig_GetClientIdentity(int networkId, WifiConfig_ClientIdentity *outIdentity);
ParametriParameters
networkId
ID della rete.networkId
The ID of the network. WifiConfig_AddNetwork restituisce l'ID di rete.WifiConfig_AddNetwork returns the network ID.outIdentity
Puntatore a una struttura WifiConfig_ClientIdentity che riceve l'identità del client associata alla rete specificata.outIdentity
A pointer to a WifiConfig_ClientIdentity structure that receives the client identity associated with the specified network.
ErrorsErrors
Restituisce-1 se viene rilevato un errore e imposta sul errno
valore di errore.Returns -1 if an error is encountered and sets errno
to the error value.
EACCES: il manifesto dell'applicazione non include la funzionalità EnterpriseWifiConfig.EACCES: the application manifest doesn't include the EnterpriseWifiConfig capability.
EAGAIN: il dispositivo Wi-Fi non è ancora pronto.EAGAIN: the Wi-Fi device isn't ready yet.
EFAULT: il parametro
outIdentity
è NULL.EFAULT: theoutIdentity
parameter is NULL.EINVAL: il parametro
networkId
non è valido.EINVAL: thenetworkId
parameter is invalid.ENETDOWN: l'interfaccia di rete Wi-Fi non è disponibile.ENETDOWN: the Wi-Fi network interface is unavailable.
ENODEV: il parametro
networkId
non corrisponde a nessuno degli ID delle reti archiviate.ENODEV: thenetworkId
parameter doesn't match any of the IDs of the stored networks.
È errno
possibile specificare anche qualsiasi altro tipo di errore. tali errori non sono deterministici e non vi è alcuna garanzia che lo stesso comportamento venga mantenuto tramite gli aggiornamenti del sistema.Any other errno
may also be specified; such errors aren't deterministic and there's no guarantee that the same behavior will be retained through system updates.
Valore restituitoReturn value
Restituisce 0 per l'esito positivo o-1 per l'esito negativo, nel qual caso errno
viene impostato sul valore di errore.Returns 0 for success, or -1 for failure, in which case errno
is set to the error value.
Requisiti del manifesto dell'applicazioneApplication manifest requirements
Il manifesto dell'applicazione deve includere la funzionalità EnterpriseWifiConfig.The application manifest must include the EnterpriseWifiConfig capability.