SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
There are two ways to see and get P2P remote devices discovered during a P2P find and search operation:
SL_WLAN_P2P_DEV_FOUND_EVENT: This event is sent to each remote P2P that is found. It contains the MAC address, the name, and the name length of the remote device. By listening to this event, the user can find each remote P2P in the neighborhood.
Sl_WlanGetNetworkList: By calling to this API, the user gets a list of remote peers found and saved in the device cache. This API is also used in station mode.
API:
sl_WlanGetNetworkList(unsigned char Index, unsigned char Count,
Sl_WlanNetworkEntry_t *pEntries)
Index – Indicates the index in the list tables the P2P devices return to.
Count – Shows how many peer devices should be returned.
pEntries – The results are entered in to this, which is allocated by the user.