-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage_settings.json
More file actions
41 lines (41 loc) · 1 KB
/
message_settings.json
File metadata and controls
41 lines (41 loc) · 1 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"broker": {
"url": "test.mosquitto.org",
"port": 1883
},
"topics": {
"dimensions": [
{ "name": "building", "list": ["home"] },
{ "name": "floor", "list": ["living", "bedroom", "kitchen", "office"] },
{ "name": "room", "list": ["room1", "room2"] },
{ "name": "device", "list": ["dummy"] }
],
"types": ["camera", "plug", "smoke", "printer"],
"type_dimensions": {
"camera": ["building", "floor", "room"],
"plug": ["building", "floor", "room"],
"smoke": ["building", "floor", "room"],
"printer": ["building", "floor", "room"]
}
},
"schemas": {
"camera": {
"status": {"type": "bool"}
},
"plug": {
"power": {"type": "float", "min": 0, "max": 100}
},
"smoke": {
"detected": {"type": "bool"}
},
"printer": {
"ink": {"type": "int", "min": 0, "max": 100}
}
},
"publish_interval": 1,
"subscribers": {
"topics": ["living/#", "bedroom/#", "kitchen/#", "office/#"],
"users": ["user1", "user2", "user3"],
"passwords": ["password1", "password2", "password3"]
}
}