mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
Create sphinx key flow diagram (#19)
* first steps * fix formatting * more details * Clarify wifi reset branch, and loop branch on mqtt message listen * Small nits
This commit is contained in:
45
FLOW.md
Normal file
45
FLOW.md
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
```
|
||||||
|
POWER UP ────── SOLID RED
|
||||||
|
│
|
||||||
|
│
|
||||||
|
│
|
||||||
|
│
|
||||||
|
YES ┌────────▼──────────┐
|
||||||
|
┌─────┤NVS GOT WIFI, KEYS?│
|
||||||
|
│ └────────┬──────────┘
|
||||||
|
│ │
|
||||||
|
│ │NO
|
||||||
|
│ │
|
||||||
|
│ ▼
|
||||||
|
┌─► RESET ───────────┼───────► SERVING WIFI AP ────── YELLOW BLINK
|
||||||
|
│ WIFI │ │
|
||||||
|
│ │ │
|
||||||
|
│ │ │
|
||||||
|
│ │ ▼
|
||||||
|
│ │ CONNECTION RECEIVED ────── YELLOW SOLID
|
||||||
|
│ │ │
|
||||||
|
│ │ │
|
||||||
|
│ │ │
|
||||||
|
│ │ ▼
|
||||||
|
│ └───────► GOT THE CREDENTIALS, KEYS ────── ORANGE BLINK
|
||||||
|
│ ATTEMPTING TO CONNECT TO WIFI
|
||||||
|
│ │
|
||||||
|
│BUTTON PRESS │
|
||||||
|
│ │
|
||||||
|
│ ▼
|
||||||
|
┌───┴────────────────┬────► WIFI CONNECTED,
|
||||||
|
│WIFI CONNECTIOW DOWN│ CONNECTING TO MQTT BROKER ────── VIOLET BLINK
|
||||||
|
│ == │ │
|
||||||
|
│ SLOW BLINK RED │ │
|
||||||
|
└────────────────────┘ │
|
||||||
|
▼
|
||||||
|
┌─────────────────────┬───► ┌──► CONNECTED TO MQTT BROKER, ────── BLUE BLINKS
|
||||||
|
│ MQTT CONNECTION DOWN│ │ LISTENING TO MESSAGES EVERY FIVE SECONDS
|
||||||
|
│ == │ │ │
|
||||||
|
│ FAST BLINK RED │ │ │
|
||||||
|
└─────────────────────┘ │ │
|
||||||
|
│ ▼
|
||||||
|
└─── SIGNED A MESSAGE ────── GREEN BLINK
|
||||||
|
```
|
||||||
|
|
||||||
|
Paste the code block above into `asciiblock.com` to make edits. Then press the download button on the top right of the pane to bring it back here.
|
||||||
Reference in New Issue
Block a user