Functions | |
NMI_API sint8 | m2m_wifi_p2p (uint8 u8Channel) |
Asynchronous Wi-Fi direct (P2P) enabling mode function. The WILC supports P2P in device listening mode ONLY (intent is ZERO). The WILC P2P implementation does not support P2P GO (Group Owner) mode. Active P2P devices (e.g. phones) could find the WILC in the search list. When a device is connected to WILC, a Wi-Fi notification event M2M_WIFI_RESP_CON_STATE_CHANGED is triggered. Refer to the code examples for a more illustrative example.
[in] | u8Channel | P2P Listen RF channel. According to the P2P standard It must hold only one of the following values 1, 6 or 11. |
The code snippet shown an example of how the p2p mode operates.