NetIF_WiFi_CreateAdhoc() requires height eight arguments. The first argument is the interface number, which is acquired upon successfully adding and starting the interface.- The second argument is the data rate used on the wireless network.
- The third argument is the wireless security type of the wireless network.
- The fourth argument is the radio power level used to communicate on the wireless network.
- The fifth argument is the wireless channel for the ad hoc network.
- The sixth argument is a pointer to a string that contains the SSID of the wireless access point.
- The seventh argument is a pointer to a string that contains the pre-shared key of the wireless access point.
- The last argument is a pointer to a
NET_ERR that contains the return error code. The return error variable will contain the value NET_IF_WIFI_ERR_NONE if the create process has been completed successfully.
|