-
Notifications
You must be signed in to change notification settings - Fork 0
/
senml.schema.json
54 lines (54 loc) · 1.66 KB
/
senml.schema.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "SenML JSON Representation (application/senml+json)",
"description": "See https://datatracker.ietf.org/doc/html/rfc8428#section-5",
"type": "object",
"properties": {
"SenML": {
"type": "array",
"items": {
"type": "object",
"properties": {
"bn": {
"title": "Base Name",
"type": "string",
"examples": ["14201/0"]
},
"bt": {
"title": "Base Time",
"type": "number",
"examples": [1713777751986]
},
"bu": { "title": "Base Unit", "type": "string" },
"bv": { "title": "Base Value", "type": "number" },
"bs": { "title": "Base Sum", "type": "number" },
"bver": { "title": "Base Version", "type": "number" },
"n": {
"title": "Name",
"type": "string",
"examples": ["0", "1", "3"]
},
"u": { "title": "Unit", "type": "string" },
"v": {
"title": "Value",
"type": "number",
"examples": [62.469414, 6.151946, 1.0]
},
"vs": {
"title": "String Value ",
"type": "string",
"examples": ["Fixed"]
},
"vb": { "title": " Value", "type": "boolean" },
"vd": { "title": "Data Value", "type": "string" },
"s": { "title": "Sum", "type": "number" },
"t": { "title": "Time", "type": "number" },
"ut": { "title": "Update Time", "type": "number" }
},
"required": [],
"minItems": 1
}
}
},
"required": ["SenML"]
}