Lines Matching +full:main +full:- +full:mode

1 .. zephyr:code-sample:: wifi-ap-sta-mode
2 :name: Wi-Fi AP-STA mode
3 :relevant-api: wifi_mgmt dhcpv4_server
5 Configure a Wi-Fi board to operate as both an Access Point (AP) and a Station (STA).
10 The Wi-Fi AP-STA mode of a Wi-Fi board allows it to function as both
12 This sample demonstrates how to configure and utilize AP-STA mode.
16 1. ``AP mode``: AP mode is configured and enabled. DHCPv4 server is also
18 2. ``STA mode``: Provide the SSID and PSK of you router
20 In this demo, AP-STA mode is enabled using :kconfig:option:`CONFIG_ESP32_WIFI_AP_STA_MODE`.
21 An additional Wi-Fi node is added in the ``.overlay`` file. The ``net_if``.
22 In the sample code, initially, the AP mode is enabled, followed by enabling the STA mode.
23 The driver checks if AP mode was previously enabled. If so, it transitions
24 the board into AP-STA mode to support both modes and attempts to connect to the
33 To enable or disable ``AP-STA`` mode, modify the :kconfig:option:`CONFIG_ESP32_WIFI_AP_STA_MODE`
35 extra Wi-Fi node is included in ``boards/esp32_devkitc_wroom_procpu.overlay``.
37 By default, AP-STA mode is disabled.
42 .. zephyr-app-commands::
43 :zephyr-app: samples/boards/espressif/deep_sleep
51 .. code-block:: console
53 *** Booting Zephyr OS build v3.7.0-rc3-104-gd1e5c5b3f9b7 ***
54 [00:00:05.171,000] <inf> MAIN: Turning on AP Mode
60 [00:00:05.172,000] <inf> MAIN: DHCPv4 server started...
62 [00:00:05.350,000] <inf> MAIN: AP Mode is enabled. Waiting for sta to connect ESP32-AP
63 [00:00:05.350,000] <inf> MAIN: Connecting to SSID: ZIN-Dummy
66 [00:00:09.499,000] <inf> MAIN: Connected to ZIN-Dummy
67 [00:00:32.739,000] <inf> MAIN: station: 7C:50:79:17:89:19 joined
68 …[00:00:32.832,000] <dbg> net_dhcpv4_server: dhcpv4_handle_discover: DHCPv4 processing Discover - r…
69 …[00:00:33.839,000] <dbg> net_dhcpv4_server: dhcpv4_handle_request: DHCPv4 processing Request - all…