Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Header: #include <applibs/wificonfig.h>
Gets a Wi-Fi network that is connected to the device. This function is not thread safe.
int WifiConfig_GetCurrentNetwork(WifiConfig_ConnectedNetwork * connectedNetwork);
Parameters
connectedNetworkA pointer to a WifiConfig_ConnectedNetwork struct that returns the connected Wi-Fi network.
Errors
Returns -1 if an error is encountered and sets errno to the error value.
EACCES: the application manifest does not include the WifiConfig capability.
EFAULT: the
ssidis NULL.ENODATA: the device is not currently connected to any network.
EINVAL: the
storedNetworkor its struct version is invalid.EAGAIN: the Wi-Fi device isn't ready yet.
ENETDOWN: the Wi-Fi network interface is unavailable.
Any other errno may also be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.
Return value
Returns 0 for success, or -1 for failure, in which case errno is set to the error value.
Application manifest requirements
The application manifest must include the WifiConfig capability.