Skip to content

Instantly share code, notes, and snippets.

@nishanc
Last active May 15, 2021 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishanc/b3c4820776e1673cc92c2237ba4e520f to your computer and use it in GitHub Desktop.
Save nishanc/b3c4820776e1673cc92c2237ba4e520f to your computer and use it in GitHub Desktop.
#include "driver/sdmmc_host.h"
#include "driver/sdmmc_defs.h"
#include "sdmmc_cmd.h"
#include "esp_vfs_fat.h"
long current_millis;
long last_capture_millis = 0;
static esp_err_t cam_err;
static esp_err_t card_err;
char strftime_buf[64];
int file_number = 0;
bool internet_connected = false;
struct tm timeinfo;
time_t now;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment