Funzione WifiConfig_GetStoredNetworkCountWifiConfig_GetStoredNetworkCount Function
Intestazione: #include <applibs/wificonfig.h>Header: #include <applibs/wificonfig.h>
Ottiene il numero di reti Wi-Fi archiviate nel dispositivo.Gets the number of stored Wi-Fi networks on the device. Questa funzione non è thread-safe.This function is not thread safe.
Nota
Prima di chiamare WifiConfig_GetStoredNetworks, è necessario chiamare WifiConfig_GetStoredNetworkCount e usare il risultato come dimensioni della matrice WifiConfig_StoredNetwork passata a WifiConfig_GetStoredNetworks.Before you call WifiConfig_GetStoredNetworks, you must call WifiConfig_GetStoredNetworkCount and use the result as the array size for the WifiConfig_StoredNetwork array that is passed to WifiConfig_GetStoredNetworks.
ssize_t WifiConfig_GetStoredNetworkCount(void);
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à WifiConfig.EACCES: the application manifest does not include the WifiConfig capability.
EAGAIN: il dispositivo Wi-Fi non è ancora pronto.EAGAIN: the Wi-Fi device isn't ready yet.
ENETDOWN: l'interfaccia di rete Wi-Fi non è disponibile.ENETDOWN: the Wi-Fi network interface is unavailable.
errno
È possibile specificare anche qualsiasi altro tipo di errore. tali errori non sono deterministici e lo stesso comportamento potrebbe non essere mantenuto tramite gli aggiornamenti del sistema.Any other errno
may also be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.
Valore restituitoReturn value
Restituisce il numero di reti Wi-Fi archiviate nel dispositivo oppure-1 per l'errore, nel qual caso errno
viene impostato sul valore di errore.Returns the number of Wi-Fi networks stored on the device, 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à WifiConfig.The application manifest must include the WifiConfig capability.