You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to |NCS| samples, it is possible to run selected networking samples with Wi-Fi®, provided and maintained as part of the upstream Zephyr project.
11
11
The following list specifies samples that are currently supported with the Wi-Fi driver:
12
12
13
-
* :zephyr:code-sample:`dhcpv4-client`
14
13
* :zephyr:code-sample:`dns-resolve`
15
14
* :zephyr:code-sample:`ipv4-autoconf`
16
15
* :zephyr:code-sample:`mdns-responder`
17
16
* :zephyr:code-sample:`mqtt-publisher`
18
17
* :zephyr:code-sample:`mqtt-sn-publisher`
19
-
* :zephyr:code-sample:`coap-client`
20
18
* :zephyr:code-sample:`coap-server`
21
-
* :zephyr:code-sample:`sockets-echo`
22
19
* :zephyr:code-sample:`async-sockets-echo`
23
20
* :zephyr:code-sample:`sockets-echo-client`
24
21
* :zephyr:code-sample:`sockets-echo-server`
@@ -27,42 +24,26 @@ The following list specifies samples that are currently supported with the Wi-Fi
27
24
* :zephyr:code-sample:`syslog-net`
28
25
* :zephyr:code-sample:`telnet-console`
29
26
30
-
Configuration
31
-
*************
32
-
33
-
|config|
34
-
35
-
Before you build a sample, you must configure the following Wi-Fi credentials in the :file:`overlay-nrf700x.conf` file:
36
-
37
-
* :kconfig:option:`CONFIG_WIFI_CREDENTIALS_STATIC_SSID` - Network name (SSID)
* :kconfig:option:`CONFIG_WIFI_CREDENTIALS_STATIC_TYPE` - Security type (Optional)
40
-
41
-
.. note::
42
-
You can also use ``menuconfig`` to configure Wi-Fi credentials.
43
-
44
-
See :ref:`zephyr:menuconfig` in the Zephyr documentation for instructions on how to run ``menuconfig``.
45
-
46
27
Building and running
47
28
********************
48
29
49
30
To build the sample with |VSC|, follow the steps listed on the `How to build an application`_ page in the |nRFVSC| documentation.
50
31
See :ref:`building` for other building scenarios, :ref:`programming` for programming steps, and :ref:`testing` for general information about testing and debugging in the |NCS|.
51
32
52
-
An overlay file, ``overlay-nrf700x.conf`` is provided to all Zephyr samples, which configures the sample to run with the Wi-Fi driver.
33
+
A :ref:`Wi-Fi snippet <zephyr:snippet-wifi-ipv4>` configuration is provided to all Zephyr samples, which configures the sample to run with the Wi-Fi driver.
53
34
54
35
To build Zephyr samples for the nRF7002 DK, use the ``nrf7002dk/nrf5340/cpuapp`` board target.
55
36
The following is an example of the CLI command:
56
37
57
38
.. code-block:: console
58
39
59
-
west build -b nrf7002dk/nrf5340/cpuapp -- -DEXTRA_CONF_FILE=overlay-nrf700x.conf
40
+
west build -b nrf7002dk/nrf5340/cpuapp -S wifi-ipv4
60
41
61
42
To build for the nRF7002 EK with nRF5340 DK, use the ``nrf5340dk/nrf5340/cpuapp`` board target with the ``SHIELD`` CMake option set to ``nrf7002ek``.
62
43
The following is an example of the CLI command:
63
44
64
45
.. code-block:: console
65
46
66
-
west build -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf7002ek -DEXTRA_CONF_FILE=overlay-nrf700x.conf
47
+
west build -b nrf5340dk/nrf5340/cpuapp -S wifi-ipv4 -- -DSHIELD=nrf7002ek -DSB_CONFIG_WIFI_NRF70=y
67
48
68
-
For additional details about running a sample, refer to the respective sample in Zephyr’s Samples and Demos documentation.
49
+
For additional details about running a sample, refer to the respective sample in Zephyr’s :ref:`Samples and Demos documentation<zephyr:samples-and-demos>`.
0 commit comments