Skip to content

Instantly share code, notes, and snippets.

View Richard123-eng's full-sized avatar

Richard123-eng

View GitHub Profile
@Richard123-eng
Richard123-eng / tilt_repeater.ino
Created April 3, 2023 00:23 — forked from N3MIS15/tilt_repeater.ino
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).