WifiConfig_GetNetworkDiagnostics function

Header: #include <applibs/wificonfig.h>

Gets diagnostic information about the most recent error on a specified network

static int WifiConfig_GetNetworkDiagnostics(int networkId,
                                            WifiConfig_NetworkDiagnostics *networkDiagnostics);

Parameters

Errors

Returns -1 if an error is encountered and sets errno to the error value.

  • EACCES: the application manifest doesn't include the WifiConfig capability.

  • EFAULT: the networkDiagnostics parameter is NULL.

  • EINVAL: the networkId is invalid.

  • ENODEV: no diagnostic information was available for the specified network.

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.