Commit c005997a authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Mahesh Mahadevan
Browse files

samples: net: wifi: Update the AP-STA mode sample



Update the AP/STA mode README file to make it more generic.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@nordicsemi.no>
parent d75b2105
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ Usage:

Set :kconfig:option:`CONFIG_WIFI_SIMPLELINK` and :kconfig:option:`CONFIG_WIFI` to ``y``
to enable Wi-Fi.
See :zephyr_file:`samples/net/wifi/boards/cc3220sf_launchxl.conf`.
See :zephyr_file:`samples/net/wifi/shell/boards/cc3220sf_launchxl.conf`.

Provisioning:
=============
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ Usage:

Set :kconfig:option:`CONFIG_WIFI_SIMPLELINK` and :kconfig:option:`CONFIG_WIFI` to ``y``
to enable Wi-Fi.
See :zephyr_file:`samples/net/wifi/boards/cc3235sf_launchxl.conf`.
See :zephyr_file:`samples/net/wifi/shell/boards/cc3235sf_launchxl.conf`.

Provisioning:
=============
+2 −1
Original line number Diff line number Diff line
@@ -231,8 +231,9 @@ REDIRECTS = [
    ('samples/boards/esp32/flash_memory_mapped/README', 'samples/boards/espressif/flash_memory_mapped/README'),
    ('samples/boards/esp32/light_sleep/README', 'samples/boards/espressif/light_sleep/README'),
    ('samples/boards/esp32/spiram_test/README', 'samples/boards/espressif/spiram_test/README'),
    ('samples/boards/esp32/wifi_apsta_mode/README', 'samples/boards/espressif/wifi_apsta_mode/README'),
    ('samples/boards/esp32/wifi_apsta_mode/README', 'samples/net/wifi/apsta_mode/README'),
    ('samples/boards/esp32/xt_wdt/README', 'samples/boards/espressif/xt_wdt/README'),
    ('samples/boards/espressif/wifi_apsta_mode/README', 'samples/net/wifi/apsta_mode/README'),
    ('samples/boards/google_twinkie_v2_pda/README', 'samples/boards/google/twinkie_v2/pda/README'),
    ('samples/boards/intel_adsp/code_relocation/README', 'samples/boards/intel/adsp/code_relocation/README'),
    ('samples/boards/litex/i2s/README', 'samples/boards/enjoydigital/litex/i2s/README'),
+5 −0
Original line number Diff line number Diff line
.. zephyr:code-sample-category:: wifi
   :name: Wi-Fi
   :show-listing:

   These samples demonstrate various Wi-Fi use cases for boards that support it.
+4 −4
Original line number Diff line number Diff line
.. zephyr:code-sample:: esp32-wifi-ap-sta-mode
.. zephyr:code-sample:: wifi-ap-sta-mode
   :name: Wi-Fi AP-STA mode
   :relevant-api: wifi_mgmt dhcpv4_server

   Setup ESP32 to function as both an Access Point (AP) and a Station (STA) simultaneously.
   Configure a Wi-Fi board to operate as both an Access Point (AP) and a Station (STA).

Overview
********

The Wi-Fi AP-STA mode of the ESP32 allows it to function as both
The Wi-Fi AP-STA mode of a Wi-Fi board allows it to function as both
an Access Point (AP) and a Station (STA) simultaneously.
This sample demonstrates how to configure and utilize AP-STA mode.

@@ -21,7 +21,7 @@ In this demo, AP-STA mode is enabled using :kconfig:option:`CONFIG_ESP32_WIFI_AP
An additional Wi-Fi node is added in the ``.overlay`` file. The ``net_if``.
In the sample code, initially, the AP mode is enabled, followed by enabling the STA mode.
The driver checks if AP mode was previously enabled. If so, it transitions
the ESP32 into AP-STA mode to support both modes and attempts to connect to the
the board into AP-STA mode to support both modes and attempts to connect to the
AP specified by the provided SSID and PSK.

Requirements
Loading