Search found 300 matches

by mbratch
Fri Jul 02, 2021 1:32 pm
Forum: ESP-IDF
Topic: How to enable FATFS in ESP-IDF 4.2
Replies: 3
Views: 2871

Re: How to enable FATFS in ESP-IDF 4.2

Yeah it's a good idea to avoid "obvious" or common names for your own variables and classes for this reason. I've encountered this in the PlatformIO build environment as well, so it's not specific to Espressif tools. I think they have built in rules for what overrides what in those cases. Glad you f...
by mbratch
Fri Jul 02, 2021 1:15 pm
Forum: ESP-IDF
Topic: Can't connect to softAP. Client does not receive IP Address
Replies: 7
Views: 5580

Re: Can't connect to ESP's AP

Did you compile it for your platform, or did you just flash the precompiled binary? The binaries were compiled and tested on a DOIT ESP32.
by mbratch
Fri Jul 02, 2021 11:53 am
Forum: ESP-IDF
Topic: How to fill a a flash partition with files/data
Replies: 5
Views: 6041

Re: How to fill a a flash partition with files/data

Hello Michael
Great question. I don't have access to my laptop at the moment, but I believe the espressif example app for a rest API server uses a file system partition and the build config is set up to prepopulate the web page file hierarchy. Check out that example and see if that helps you along.
by mbratch
Thu Jul 01, 2021 10:45 pm
Forum: ESP-IDF
Topic: wifi connect and disconnect to my will
Replies: 5
Views: 5003

Re: wifi connect and disconnect to my will

You shouldn't have to go through the entire event creation and initialization process. `wifi_init_sta()` was written with the intention of being called during initialization. I think you just need to: esp_wifi_disconnect(); esp_wifi_set_config(...); esp_wifi_connect(); And the event handler would ha...
by mbratch
Thu Jul 01, 2021 2:33 am
Forum: ESP-IDF
Topic: Why does WiFi.begin() take 3-4 attempts to connect?
Replies: 1
Views: 2400

Re: Why does WiFi.begin() take 3-4 attempts to connect?

This question is about an Arduino library, not a ESP-IDF library. You should post it in the Arduino discussion forum.
by mbratch
Thu Jul 01, 2021 2:31 am
Forum: ESP-IDF
Topic: Help with wifi Station mode please
Replies: 1
Views: 2109

Re: Help with wifi Station mode please

I'm not exactly sure what you mean by, "...I browse that IP". Do you mean you attempt to connect to it from a browser with HTTP?

What happens if you ping the address, do you get a response?
by mbratch
Thu Jul 01, 2021 2:18 am
Forum: ESP-IDF
Topic: wifi connect and disconnect to my will
Replies: 5
Views: 5003

Re: wifi connect and disconnect to my will

You should be able to do `esp_wifi_disconnect()`, reconfigure the wifi with the new credentials and info, then `esp_wifi_connect()`. If your event handler is written like the example, it should go through the connection and authentication process again.
by mbratch
Thu Jul 01, 2021 2:13 am
Forum: ESP-IDF
Topic: Init 7 seg display on esp32 gpios
Replies: 3
Views: 2517

Re: Init 7 seg display on esp32 gpios

Can you clarify the configuration a little further? How many 7-segment digits are you driving? Just one, or more? Is the 2kHz the total cycle time you're trying to achieve for all digits? Why does it need to be that high?
by mbratch
Thu Jun 24, 2021 10:21 am
Forum: ESP32 Arduino
Topic: IP suddenly stops responding after several hours running
Replies: 6
Views: 80260

Re: IP suddenly stops responding after several hours running

I converted my application over to ESP-IDF and I still have the identical problem. Here's a message I see on the monitor when the wifi connection drops: I (10605501) wifi:state: run -> init (ec0) I (10605501) wifi:pm stop, total sleep time: 9582020957 us / 10604598223 us I (10605501) wifi:new:<11,0>...
by mbratch
Thu Jun 24, 2021 12:23 am
Forum: ESP32 Arduino
Topic: IP suddenly stops responding after several hours running
Replies: 6
Views: 80260

Re: AsyncWebServer suddenly stops responding to http requests after a couple of hours running

Possibly a memory leak? You may want to print the amount of free memory (using e.g. heap_caps_get_free_size(MALLOC_CAP_8BIT)) to see if that consistently goes down. I ran `heap_caps_get_free_size(MALLOC_CAP_8BIT)` at regular intervals. The output was steady as a rock, so at least it did not show an...