Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit 18ca67e

Browse files
authored
diagram source
1 parent 2099257 commit 18ca67e

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

gravizo.diagram.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
## gravizo diagram
3+
4+
5+
```
6+
![Alt text](https://g.gravizo.com/svg?
7+
@startuml;
8+
hide footbox;
9+
entity Sensor;
10+
participant "Publisher" as A;
11+
participant "Broker" as B;
12+
participant "Subscriber" as C;
13+
...;
14+
note over B: 1. Filter MQTT message;
15+
Sensor -> A: Read Sensor;
16+
A -> B: "85" Temperature F;
17+
B->x B:;
18+
Sensor -> A:;
19+
A -> B: "95";
20+
B->x B:;
21+
Sensor -> A:;
22+
A -> B: "110";
23+
B -> C: if temp > "100" F;
24+
@enduml;
25+
)
26+
```
27+
28+
29+
```
30+
![Alt text](https://g.gravizo.com/svg?
31+
@startuml;
32+
hide footbox;
33+
entity Sensor;
34+
participant "Publisher" as A;
35+
participant "Broker" as B;
36+
participant "Subscriber" as C;
37+
...;
38+
note over B: 2. Convert MQTT message;
39+
Sensor -> A:Read Sensor;
40+
A -> B: "345" Range 0-2047;
41+
B -> C: { "moisture" : "17"};
42+
@enduml;
43+
)
44+
```
45+
46+
```
47+
![Alt text](https://g.gravizo.com/svg?
48+
@startuml;
49+
hide footbox;
50+
entity Sensor;
51+
participant "Publisher" as A;
52+
participant "Broker" as B;
53+
participant "Subscriber A" as C;
54+
...;
55+
note over B: 3. Distribute MQTT message;
56+
Sensor -> A:Read Sensor ;
57+
A -> B: "110" Temperature F;
58+
B -> C: "110" Temperature F;
59+
create "Subscriber B";
60+
B --> "Subscriber B": warning if temp > 100 F ;
61+
@enduml;
62+
)
63+
64+
```

0 commit comments

Comments
 (0)