summaryrefslogtreecommitdiff
path: root/state_diagram.txt
blob: 2da76b1549f26dccc5a708e17c977cad55d231e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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