-
Notifications
You must be signed in to change notification settings - Fork 0
/
virtual_infrared_sensor1.td.json
57 lines (56 loc) · 1.53 KB
/
virtual_infrared_sensor1.td.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
{
"@context":[
"https://www.w3.org/2019/wot/td/v1",
{
"@language":"en"
}
],
"@type":"Thing",
"title": "VirtualInfraredSensor1",
"id": "urn:dev:ops:32473-virtual-sensor-1",
"description": "Infrared sensor for the detection of objects (Virtual)",
"security": "nosec_sc",
"securityDefinitions": {
"nosec_sc": {
"scheme": "nosec"
}
},
"properties": {
"objectPresence":{
"title": "Read infrared sensor",
"description": "get the sensor state if there is object",
"type": "boolean",
"readOnly": true,
"observable": true,
"forms": [
{
"href": "http://localhost:9000/virtualinfraredsensor1/properties/objectPresence",
"contentType": "application/json",
"op": [
"readproperty"
],
"htv:methodName": "GET"
}
]
}
},
"events": {
"detectedObject": {
"data": {
"type": "boolean"
},
"description": "Detects the rising edge of the signal of the infrared sensor.",
"forms": [
{
"contentType": "application/json",
"href": "http://localhost:9000/virtualinfraredsensor1/events/detectedObject",
"op": [
"subscribeevent"
],
"subprotocol": "longpoll"
}
],
"title": "Object detected"
}
}
}