Wi-Fi: Zephyr networking samples
In addition to nRF Connect SDK samples, it is possible to run selected networking samples with Wi-Fi®, provided and maintained as part of the upstream Zephyr project. The following list specifies samples that are currently supported with the Wi-Fi driver:
Configuration
See Configuring and building an application for information about how to permanently or temporarily change the configuration.
Before you build a sample, you must configure the following Wi-Fi credentials in the overlay-nrf700x.conf
file:
CONFIG_WIFI_CREDENTIALS_STATIC_SSID
- Network name (SSID)CONFIG_WIFI_CREDENTIALS_STATIC_PASSWORD
- PasswordCONFIG_WIFI_CREDENTIALS_STATIC_TYPE
- Security type (Optional)
Note
You can also use menuconfig
to configure Wi-Fi credentials.
See Interactive Kconfig interfaces in the Zephyr documentation for instructions on how to run menuconfig
.
Building and running
To build the sample with Visual Studio Code, follow the steps listed on the How to build an application page in the nRF Connect for VS Code extension documentation. See Configuring and building an application for other building scenarios, Programming an application for programming steps, and Testing and optimization for general information about testing and debugging in the nRF Connect SDK.
An overlay file, overlay-nrf700x.conf
is provided to all Zephyr samples, which configures the sample to run with the Wi-Fi driver.
To build Zephyr samples for the nRF7002 DK, use the nrf7002dk/nrf5340/cpuapp
board target.
The following is an example of the CLI command:
west build -b nrf7002dk/nrf5340/cpuapp -- -DEXTRA_CONF_FILE=overlay-nrf700x.conf
To build for the nRF7002 EK with nRF5340 DK, use the nrf5340dk/nrf5340/cpuapp
board target with the SHIELD
CMake option set to nrf7002ek
.
The following is an example of the CLI command:
west build -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf7002ek -DEXTRA_CONF_FILE=overlay-nrf700x.conf
For additional details about running a sample, refer to the respective sample in Zephyr’s Samples and Demos documentation.