- Wake from sleep
- Connect to WiFi
- Scan for Tilts
- Send tilt data to cloud service
- Sleep
- WiFi SSID and password are hard coded.
- Tilt UUIDs are hard coded.
- Checking interval is hard coded.
- No web interface.
- No error handling/reporting.
- No calibration support.
- Setup
- Read in preferences
- If none:
- Setup Wifi
- Set up web server
- Do FRE
- If some:
- Connect to WiFi
- If none:
- Read in preferences
- Loop
- Wake from sleep?
- Connect to WiFi
- Scan for Tilts
- Calibrate tilt data
- Send tilt data to cloud service
- Sleep?
- Can web server run during sleep? Or will this cause more energy consumption?
- Tilts are discovered on the fly?
- We need persistent storage... SD Card?