nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ register_wifi_ready_callback()

int register_wifi_ready_callback ( wifi_ready_callback_t  cb,
struct net_if *  iface 
)

#include <include/net/wifi_ready.h>

Register a callback to be called when the Wi-Fi is ready.

Parameters
cbCallback function to be called when the Wi-Fi is ready. The callback is called from NET_MGMT thread, so, care should be taken to avoid blocking the thread and also stack size should be considered.
iface(optional) Interface to which the callback is registered.
Returns
0 if the callback was successfully registered, or a negative error code if the callback could not be registered.
Return values
-EINVALif the callback is NULL.
-ENOMEMif the callback array is full.
-EALREADYif the callback is already registered.