Skip to content

wentong-li/coex_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wi-Fi: Station

The Station sample demonstrates how to connect the Wi-Fi station to a specified access point using Dynamic Host Configuration Protocol (DHCP).

The sample supports the following development kit:

.. table-from-sample-yaml::

This sample can perform Wi-Fi operations such as connect and disconnect in the 2.4GHz and 5GHz bands depending on the capabilities of an access point.

Using this sample, the development kit can connect to the specified access point in :abbr:`STA (Station)` mode.

Currently, the following board(s) are supported:

  • nRF7002 DK

You must configure the following Wi-Fi credentials in prj.conf:

  • Network name (SSID)
  • Key management
  • Password

Note

You can also use menuconfig to enable Key management option.

See :ref:`zephyr:menuconfig` in the Zephyr documentation for instructions on how to run menuconfig.

To build for the nRF7002 DK, use the nrf7002dk_nrf5340_cpuapp build target. The following is an example of the CLI command:

west build -b nrf7002dk_nrf5340_cpuapp

|test_sample|

  1. |connect_kit|

  2. |connect_terminal|

    The sample shows the following output:

    <inf> sta: Connection requested
    <inf> sta: Connected
    Status: successful
    ==================
      State: COMPLETED
      Interface Mode: STATION
      Link Mode: WIFI 6 (802.11ax/HE)
      SSID: NORDIC-GUEST
      BSSID: F0:1D:2D:72:EB:EF
      Band: 5GHz
      Channel: 116
      Security: WPA2-PSK
      MFP: Optional
      RSSI: -55
    <inf> sta: IP address: 192.168.48.41
    <inf> sta: Disconnect requested
    <inf> sta: Disconnection request done (0)
    Status: successful
    ==================
      State: DISCONNECTED

This sample uses the following `sdk-nrfxlib`_ library:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published