summaryrefslogtreecommitdiff
path: root/state_diagram.txt
diff options
context:
space:
mode:
authorErg <uinarf@autistici.org>2024-11-27 17:45:03 +0100
committerErg <uinarf@autistici.org>2024-11-27 17:45:03 +0100
commit2fb55882d733d8c1e28a49153ef6c3449ebe7998 (patch)
tree5487847741f949a95b79a2f9f2046866c1dc9358 /state_diagram.txt
parent6cb8d8a2a42d99e6440a2c0c74c08eca44c2d2df (diff)
downloadPico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.tar.gz
Pico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.tar.bz2
Pico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.zip
RestructurisationHEADmaster
Diffstat (limited to 'state_diagram.txt')
-rw-r--r--state_diagram.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/state_diagram.txt b/state_diagram.txt
new file mode 100644
index 0000000..2da76b1
--- /dev/null
+++ b/state_diagram.txt
@@ -0,0 +1,27 @@
+@startuml
+:MQTT service starts;
+start
+
+if (certificate expired) then
+ #pink:raise error;
+ kill
+endif
+:start accepting connections;
+:check certificate;
+
+if (expiring soon) then (yes)
+ :generate new certificate;
+ :send to clients;
+
+ if (confirmation NOK) then
+ #pink:raise error;
+ kill
+ endif
+ :restart MQTT;
+
+else (no)
+ :continue;
+endif
+
+stop
+@enduml