Search found 302 matches

by mbratch
Tue Sep 07, 2021 10:43 am
Forum: ESP-IDF
Topic: https request failed
Replies: 6
Views: 11072

Re: https request failed

Why are you concatenating `chr` to `dest` twice? printf(strcat(dest, chr)); // <-- here esp_http_client_config_t config = { .url = strcat(dest, chr) // <-- here }; It's also not a good idea to concatenate to a literal string. Rather, you should do something like this: const char *pref = "https://XXX...
by mbratch
Sat Sep 04, 2021 2:42 am
Forum: IDEs for ESP-IDF
Topic: VSCODE New include .c .h files
Replies: 2
Views: 3518

Re: VSCODE New include .c .h files

What does the contents of your `CMakeLists.txt` look like?
by mbratch
Thu Sep 02, 2021 1:34 am
Forum: IDEs for ESP-IDF
Topic: In Eclipse using ESP-IDF plugin, why do I have to keep rebuilding the index?
Replies: 3
Views: 4438

In Eclipse using ESP-IDF plugin, why do I have to keep rebuilding the index?

I have grown to really like using Eclipse for my ESP32 ESP-IDF development. However, there's one very annoying thing I keep having to do: rebuild the index. It will be fine for awhile, then suddenly it starts flagging all of my external function calls and variable references with squiggly lines like...
by mbratch
Wed Aug 25, 2021 8:24 pm
Forum: ESP-IDF
Topic: Detecting all nearby access point MAC addresses
Replies: 4
Views: 4496

Re: Detecting all nearby access point MAC addresses

Thank you very much for pointing me in the right direction. I have managed to modify the example code you have suggested to get the MAC addresses. One question though, I can see that in the example code, the wifi STA mode is being initialised : ESP_ERROR_CHECK(esp_netif_init()); ESP_ERROR_CHECK(esp...
by mbratch
Thu Aug 19, 2021 1:31 pm
Forum: ESP-IDF
Topic: crash using timers
Replies: 8
Views: 14665

Re: crash using timers

You can use `ESP_LOGI(...)` instead of `printf` and it uses less stack and it may work. `ESP_LOGI(...)` accepts format string.
by mbratch
Sun Aug 15, 2021 8:57 pm
Forum: General Discussion
Topic: Can't get a clean restart via software
Replies: 2
Views: 3649

Re: Can't get a clean restart via software

I have a few questions... I assume by "ESP.restart" function, you mean `esp_restart()`? When you say "ESP.reset" function, which API function exactly are you referring to? What is (or what is the nature of) the data that is corrupted? What exactly was your approach to connecting an output to EN/RST?...
by mbratch
Sat Aug 14, 2021 12:09 am
Forum: IDEs for ESP-IDF
Topic: Platformio for esp-idf where to find esp components
Replies: 1
Views: 3746

Re: Platformio for esp-idf where to find esp components

Check:

Code: Select all

C:\Users\(your_user_name)\.platformio\packages\framework-espidf
by mbratch
Thu Aug 12, 2021 6:56 pm
Forum: ESP-IDF
Topic: Modifying esp-idf library and using it for the project
Replies: 4
Views: 4720

Re: Modifying esp-idf library and using it for the project

I agree with fasani: don't change the standard library. Besides the source sharing challenge, it gets messy when you want to upgrade your ESP-IDF later. If it's only needed by the one project, make it part of your project source. If you want the custom library ary for multiple projects then create y...