wifi_setup
Overview
This demo implements a simple Wi-Fi station setup. The application will automatically scan local wireless networks at startup, then the user will be able to connect to one of the available networks and setup a ping task that will test the connection.
Before building the example application select Wi-Fi module:
build from repository - select Wi-Fi module in Kconfig GUI
build from zip package - change project macro related to Wi-Fi module
WIFI_<SoC Name>_BOARD_<Module Name>
, macro can be found in components\wifi_bt_module\incl\wifi_bt_module_config.h
For more information about Wi-Fi module connection see:
readme_modules.md (select supported board bellow)
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Connect the Wi-Fi module. Refer to readme_modules.md and the Supported boards section.
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo starts, basic initialization proceeds - this might take several seconds.
After wifi is initialized, the application will try to scan nearby networks.
Once the scan is finished, the user will be prompted to enter SSID and password for one of the scanned networks to join.
After successfully joining the network, the user will be requested to specify a valid IPv4 address, which will be used for ping test.