Search found 132 matches

by burkulesomesh43
Wed Dec 26, 2018 6:14 am
Forum: General Discussion
Topic: Storing Logs
Replies: 12
Views: 4685

Re: Storing Logs

Howdy my friend, If we take away the word "logs" from your story and simply say "We are storing data for subsequent retrieval" then I am presuming that the data has to be persisted (i.e. not just in RAM and hence survive a power down or crash). In which case my recommendation would be to use the Fa...
by burkulesomesh43
Tue Dec 25, 2018 12:38 pm
Forum: ESP32 IDF
Topic: Ethernet initialization error handling
Replies: 8
Views: 1944

Re: Ethernet initialization error handling

Thanks for the suggestion. After a bit of trial and error I was able to modify the ethernet code to do what I want: New implementation of emac_reset() in emac_dev.c: bool emac_reset(void) { REG_SET_BIT(EMAC_DMABUSMODE_REG, EMAC_SW_RST); int retryCount = 0; const int maxRetries = 500 / portTICK_PERI...
by burkulesomesh43
Tue Dec 25, 2018 10:32 am
Forum: ESP32 IDF
Topic: Setting wifi configuration
Replies: 20
Views: 2810

Re: Setting wifi configuration

ESP_igrr wrote:
Tue Dec 25, 2018 10:19 am
Since by default Wi-Fi configuration is stored into flash, you may want to call esp_wifi_set_storage function with WIFI_STORAGE_RAM argument. In this case configuration will not be saved in flash, and flash lifetime will not be affected.
I am already using this.
thanks.
by burkulesomesh43
Tue Dec 25, 2018 10:02 am
Forum: ESP32 IDF
Topic: Ethernet initialization error handling
Replies: 8
Views: 1944

Re: Ethernet initialization error handling

Thanks for the suggestion. After a bit of trial and error I was able to modify the ethernet code to do what I want: New implementation of emac_reset() in emac_dev.c: bool emac_reset(void) { REG_SET_BIT(EMAC_DMABUSMODE_REG, EMAC_SW_RST); int retryCount = 0; const int maxRetries = 500 / portTICK_PERI...
by burkulesomesh43
Tue Dec 25, 2018 7:41 am
Forum: ESP32 IDF
Topic: Setting wifi configuration
Replies: 20
Views: 2810

Re: Setting wifi configuration

I think it just like using wifi on mobile phone. When use want to connect to another wifi, you just disconnect and reconnect. And calling esp_wifi_start(); esp_wifi_stop() is the same with disable and enable wifi on mobile phone and doing this periodically is not good. So in my opinion, if you just...
by burkulesomesh43
Tue Dec 25, 2018 5:03 am
Forum: ESP32 IDF
Topic: Setting wifi configuration
Replies: 20
Views: 2810

Re: Setting wifi configuration

hoainguyen265 wrote:
Tue Dec 25, 2018 4:04 am
How about just disconnect wifi, set up new config and reconnect to wifi again?
yes. It will also work.
but I want to ask you that it will affect the performance of esp32 or not.
because I want to do it for several times for whole life cycle of esp32.
by burkulesomesh43
Mon Dec 24, 2018 7:29 pm
Forum: ESP32 IDF
Topic: Setting wifi configuration
Replies: 20
Views: 2810

Setting wifi configuration

Hi all, I want to connect to two wifi networks with the difference of some interval of time. for example: network1 for 10 min and network2 for 10 minutes. but for changing the configuration I want to stop the wifi then set the configuration and then start the wifi. that is in idf like->>> ESP_ERROR_...
by burkulesomesh43
Wed Dec 19, 2018 6:21 pm
Forum: ESP32 IDF
Topic: webserver to ota
Replies: 4
Views: 1257

Re: webserver to ota

fly135 wrote:
Wed Dec 19, 2018 5:32 pm
Use esp_https_ota in IDF. It ony takes about 4 lines of code.
Yes, but I want upload bin file by selecting it from system using webserver browse selection..
And as I upload it from webserver, the bin file should be uploaded to esp32 and used for ota.
So that I have to pass that file to ota write.
by burkulesomesh43
Wed Dec 19, 2018 2:35 pm
Forum: ESP32 IDF
Topic: webserver to ota
Replies: 4
Views: 1257

webserver to ota

Hi all, I want to ota update by uploading file from webserver. here is my html code for webserver->> "<!DOCTYPE html>" "<html>" "<body>" "<form action=\"/cf\" method=\"post\" enctype=\"multipart/form-data\">" "Select image to upload:" "<input type=\"file\" name=\"fileToUpload\" id=\"fileToUpload\">"...
by burkulesomesh43
Tue Dec 18, 2018 11:53 am
Forum: General Discussion
Topic: parse JSON from HTTP header
Replies: 9
Views: 6478

Re: parse JSON from HTTP header

http server runs without a problem but i need to extract data from POST Header did not found way to do that here is my post request and i want " uname " and " name ": POST /connect.json HTTP/1.1 Host: 192.168.4.1 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/5...

Go to advanced search