Repository navigation
Bluetooth switch: light sleep, hide continuity, host the web client on EC2 - #220
Merged
Merged
Conversation
inez9
approved these changes
Nov 13, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #218 (merged).
Power: builds as ESP-IDF 4.4 + Arduino as a component (
framework = arduino, espidf) sosdkconfig.defaultscan turn on automatic light sleep and BLE modem sleep. The prebuilt Arduino core has both off, which held the radio on at ~80 mA idle. Sleeps only on battery; USB holds it awake for the console and flashing.main.cppexempts GPIO4 (arm line), CONT_EN and the LED from IDF's sleep GPIO switching, so the output can't float during light sleep.git describe), andfirmware/tools/stripped_elf_image.pybuilds the image from a stripped ELF, since esptool always stamps the ELF's SHA-256 into the app description. Checked: two checkouts at different paths give the same image.Continuity hidden: the 1 MΩ continuity drive holds VOUT near 0.47 V, which can't conduct through the bridge board's body diodes, so an altimeter behind it reads like nothing. The LED and web page no longer show load/open while disarmed; the sense line still flags armed-not-live and disarmed-but-live.
Web client: alert banners are filled in the alert colour. Served at switch.starberkeley.org from the EC2 Caddy.
Bench: flashed and armed/disarmed on three boards. The light-sleep current on battery still needs a meter reading.