-
Notifications
You must be signed in to change notification settings - Fork 1
/
onem2m.m.uvsensor.json
44 lines (44 loc) · 1.42 KB
/
onem2m.m.uvsensor.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
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.uvsensor.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "UV Sensor",
"definitions": {
"onem2m.m.uvsensor": {
"type": "object",
"properties": {
"uvvalue": {
"type": "number",
"description": "The unit of measure of the UV intensity of radiation is \"mW/cm2\".",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.sensor.radiation.uv",
"x-to-ocf": [
"oic.r.sensor.radiation.uv.measurement = uvvalue"
],
"x-from-ocf": [
"uvvalue = oic.r.sensor.radiation.uv.measurement"
]
}
},
"uvstatus": {
"type": "integer",
"description": "The \"uvStatus\" indicates the level of the UV radiation status.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.sensor.radiation.uv",
"x-to-ocf": [
"oic.r.sensor.radiation.uv.step = uvstatus"
],
"x-from-ocf": [
"uvstatus = oic.r.sensor.radiation.uv.step"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.uvsensor"}
],
"required": [ "uvvalue" ]
}