diff options
author | Erg <uinarf@autistici.org> | 2024-11-27 17:45:03 +0100 |
---|---|---|
committer | Erg <uinarf@autistici.org> | 2024-11-27 17:45:03 +0100 |
commit | 2fb55882d733d8c1e28a49153ef6c3449ebe7998 (patch) | |
tree | 5487847741f949a95b79a2f9f2046866c1dc9358 /state_diagram.txt | |
parent | 6cb8d8a2a42d99e6440a2c0c74c08eca44c2d2df (diff) | |
download | Pico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.tar.gz Pico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.tar.bz2 Pico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.zip |
Diffstat (limited to 'state_diagram.txt')
-rw-r--r-- | state_diagram.txt | 27 |
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 |