Search found 4 matches

by microwrk234
Fri Nov 25, 2022 11:10 am
Forum: ESP-IDF
Topic: How to check free size on a sd card?
Replies: 4
Views: 3119

Re: How to check free size on a sd card?

Yeah, I'm using that example, and already tried the f_getfree code, which don't work( got both 0 size) I also tried to use 1: or 2: instead of 0: in f_getfree, they would make the program crash. Any ideas? Thanks for replying. https://sourcegraph.com/github.com/espressif/esp-idf/-/blob/components/s...
by microwrk234
Fri Nov 25, 2022 6:46 am
Forum: ESP-IDF
Topic: How to check free size on a sd card?
Replies: 4
Views: 3119

Re: How to check free size on a sd card?

Are you using this https://sourcegraph.com/github.com/espressif/esp-idf/-/blob/examples/storage/sd_card/sdspi/main/sd_card_example_main.c example try this int file_space() { FATFS *fs; DWORD fre_clust, fre_sect, tot_sect; /* Get volume information and free clusters of drive 0 */ int res = f_getfree(...
by microwrk234
Fri Nov 25, 2022 4:15 am
Forum: General Discussion
Topic: WiFi.status() (Arduino function) alternative for esp-idf
Replies: 3
Views: 5120

Re: WiFi.status() (Arduino function) alternative for esp-idf

This works please look the attached file
by microwrk234
Fri Nov 25, 2022 4:10 am
Forum: General Discussion
Topic: GET wifi status as connected or not connected
Replies: 0
Views: 1217

Re: GET wifi status as connected or not connected

[/#include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_event_loop.h" #include "esp_log.h" #include "nvs_flash.h" #include "lwip/err.h" #include "lwip/sys.h" #define EXAMPLE_ESP_WI...