This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONFIG=${1-config.json} | |
# Constants | |
ERRORS="errors.log" | |
LOGIN_FILENAME="/tmp/garmin-login.html" | |
AUTH_FILENAME="/tmp/auth.html" | |
SESSIONID_FILENAME="/tmp/sessionid.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <esp_wifi.h> | |
#define uS_TO_S_FACTOR 1000000 /* Conversion factor for u seconds to seconds */ | |
#define TIME_TO_SLEEP 10 /* Time ESP32 will go to sleep (in seconds) */ | |
//const int PIN_LED = 22; // LOLIN32 lite | |
const int PIN_LED = 5; // LOLIN32 | |
void setup() | |
{ |