From 1b544949b8c26367f91538047d570fe9e3e18ad4 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 15 Jan 2026 12:40:15 +0100 Subject: Implement deep sleep with button wakeup --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3f405cd..46050c5 100644 --- a/README.md +++ b/README.md @@ -43,22 +43,29 @@ If your port differs from `/dev/ttyACM0`, override it: make flash PORT=/dev/ttyUSB0 ``` +## Behavior + +1. On boot: connects to WiFi and MQTT, publishes voltage 3 times +2. Enters deep sleep +3. Press BOOT button to wake +4. Repeat + ## Expected Output ``` === T-Energy-S3 MQTT Monitor === +Initial boot MAC Address: AA:BB:CC:DD:EE:FF -Scanning WiFi... -Found 5 networks: - 1: MyNetwork (-45 dBm) - ... - Connecting to MyNetwork... Connected! IP: 192.168.1.100 Connecting to MQTT mqtt.example.com:8883... MQTT connected! Battery: 4200 mV Published to my/topic: 4200 -... +Battery: 4200 mV +Published to my/topic: 4200 +Battery: 4200 mV +Published to my/topic: 4200 +Entering deep sleep... press button to wake ``` -- cgit v1.3.1