Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: campestring on November 30, 2020, 04:37:06 PM

Title: How to add wifi to a project
Post by: campestring on November 30, 2020, 04:37:06 PM
Hello everyone,
I would like to add wifi to a complex program, but I Don't have anything in the menu-config to configure the wifi. I am looking for a quick guide to provide wifi to any programs. I am working on visual studio code using esp-idf.
Thank you,
best regards,

Arnaud
Title: Re: How to add wifi to a project
Post by: LubOlimex on November 30, 2020, 04:48:32 PM
Adding WIFI with ESP32 board and ESP-IDF is easy, because the WIFI is part of the ESP32 module, and there isn't any variables in regards of pinout, different wiring and so on.

Just use the ESP-IDF WIFI settings for the exact module.

What ESP32 board exactly do you have?
Title: Re: How to add wifi to a project
Post by: campestring on November 30, 2020, 06:01:12 PM
Thank you for your reply,
I am using the esp32-EVB. I want to understand how to add the option to configure the wifi SSID and password in the menu-config like in wifi example.
Thank you !
Title: Re: How to add wifi to a project
Post by: LubOlimex on December 01, 2020, 08:21:47 AM
You can set SSID and password using fuction: esp_wifi_set_config()

The ESP IDF documentation is good enough:

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html