OVMS3-idf/examples/wifi/getting_started/softAP
ronghulin ba06ecf96d bugfix: fix some wifi bugs
1. optimization esp_wifi_set_max_tx_power description
2. Add API esp_wifi_ap_get_sta_aid
3. Fix the timeout issue of EAPOL four-way handshake
4. esp_wifi:Add softap example channel configuration
2020-05-29 11:04:26 +08:00
..
main bugfix: fix some wifi bugs 2020-05-29 11:04:26 +08:00
CMakeLists.txt asio: examples renamed to have consistent binary names when build in make and CMake 2018-10-17 15:00:26 +02:00
Makefile 1. modify simple wifi example 2018-09-04 14:44:43 +08:00
README.md example: Remove duplicate commands and invalid serial port information 2020-04-13 15:16:11 +02:00

WiFi softAP example

(See the README.md file in the upper level 'examples' directory for more information about examples.)

How to use example

Configure the project

idf.py menuconfig
  • Set WiFi SSID and WiFi Password and Maximal STA connections under Example Configuration Options.

Build and Flash

Build the project and flash it to the board, then run monitor tool to view serial output:

idf.py -p PORT flash monitor

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

Example Output

There is the console output for this example:

I (917) phy: phy_version: 3960, 5211945, Jul 18 2018, 10:40:07, 0, 0
I (917) wifi: mode : softAP (30:ae:a4:80:45:69)
I (917) wifi softAP: wifi_init_softap finished.SSID:myssid password:mypassword
I (26457) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (26457) wifi: station: 70:ef:00:43:96:67 join, AID=1, bg, 20
I (26467) wifi softAP: station:70:ef:00:43:96:67 join, AID=1
I (27657) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2