NetIF_WiFi_GetPeerInfo()

Get the info of peers connected to the access point (When acting as an access point).

Files

net_if_wifi.h/net_if_wifi.c

Prototype


CPU_INT16U  NetIF_WiFi_GetPeerInfo (NET_IF_NBR          if_nbr,
                                    NET_IF_WIFI_PEER   *p_buf_peer,
                                    CPU_INT16U          buf_peer_len_max,
                                    NET_ERR            *p_err)

Arguments

if_nbrWireless network interface number.
p_buf_peerPointer to the buffer to save the peer information.
buf_peer_len_maxLength in bytes of p_buf_peer.
p_err

Pointer to variable that will receive the return error code from this function :

NET_IF_ERR_NONE

NET_IF_WIFI_ERR_GET_PEER_INFO

Returned Value

Number of peers on the network and that are set in the buffer.

Required Configuration

None.

Notes / Warnings

This function can be called only when the wireless device is configured to act as an Wifi Infrastructure Access point.