forked from FIWARE/data-models
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdevice-schema.json
104 lines (104 loc) · 2.34 KB
/
device-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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"$schema": "http://json-schema.org/schema#",
"id": "https://fiware.github.io/dataModels/specs/Device/device-schema.json",
"title": "GSMA / FIWARE - Device Commons schema",
"description": "Common defintions to describe Device and Device Model scemas.",
"definitions": {
"MacAddressType": {
"type": "string",
"pattern": "^([[:xdigit:]]{2}[:.-]?){5}[[:xdigit:]]{2}$"
},
"CategoryType": {
"type": "array",
"items": {
"type": "string",
"enum": [
"sensor",
"actuator",
"meter",
"HVAC",
"network",
"multimedia"
]
}
},
"ControlledPropertyType": {
"type": "array",
"items": {
"type": "string",
"enum": [
"temperature",
"humidity",
"light",
"motion",
"fillingLevel",
"occupancy",
"power",
"pressure",
"smoke",
"energy",
"airPollution",
"noiseLevel",
"weatherConditions",
"precipitation",
"windSpeed",
"windDirection",
"atmosphericPressure",
"solarRadiation",
"depth",
"pH",
"conductivity",
"conductance",
"tss",
"tds",
"turbidity",
"salinity",
"orp",
"cdom",
"waterPollution",
"location",
"speed",
"heading",
"weight",
"waterConsumption",
"gasComsumption",
"electricityConsumption"
]
},
"SupportedProtocolType": {
"type": "array",
"items": {
"type": "string",
"enum": [
"ul20",
"mqtt",
"lwm2m",
"http",
"websocket",
"onem2m",
"sigfox",
"lora",
"nb-iot",
"ec-gsm-iot",
"lte-m",
"cat-m",
"3g",
"grps"
]
}
}
},
"Device-Commons": {
"type": "object",
"category": {
"$ref": "/definitions/CategoryType"
},
"controlledProperty": {
"$ref": "/definitions/ControlledPropertyType"
},
"supportedProtocol": {
"$ref": "/definitions/SupportedProtocolType"
}
}
}
}