Skip to content

Instantly share code, notes, and snippets.

View solidcitizen's full-sized avatar

Mike Conant solidcitizen

View GitHub Profile
@N3MIS15
N3MIS15 / tilt_repeater.ino
Last active January 10, 2024 13:32
ESP32 Tilt Repeater
// ESP32 Tilt Repeater
// By David Gray
#include "BLEDevice.h"
#include "BLEBeacon.h"
#include "esp_deep_sleep.h"
// User Settings
int SCAN_TIME = 5; // Duration to scan for bluetooth devices (in seconds).
int TIME_TO_SLEEP = 60; // Duration ESP32 will go to sleep between scans (in seconds).