Page 1 of 1

Config file and wificonfig

Posted: Sat Jul 18, 2020 11:14 pm
by esp32_begginer
Hello,

Sorry, I'm a complete beginer, I have a question. I'm using a ESP32 for a university project. How can I program that device to provide a file upload web page to submit a config file to send all the configuration parameters (SSID, password and all the parameters that the program needs)?

The idea is to send all the configuration for each device this way. is there any already solution or something that can I reuse to do that?

Thanks in advance!!

Re: Config file and wificonfig

Posted: Thu Jul 23, 2020 3:21 pm
by zliudr
There is a server file upload sample code located inside ESP-IDF. There's also a http client sample code that connects to wifi so you will see how to use ssid:pass to connect. Then you need to write a program to read the info from your file to use for wifi. Each piece isn't hard by itself but you need to combine them, which becomes harder. I'm sure someone will provide some help after YOU put in some effort in writing your code. It's YOUR uni. project.