Skip to content

Commit 8c22450

Browse files
committed
add leaf device model
1 parent 6cc9cdb commit 8c22450

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

dtmi/e4ktests/leafdevice-1.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"@context": "dtmi:dtdl:context;2",
3+
"@id": "dtmi:e4ktests:leafDevice;1",
4+
"@type": "Interface",
5+
"contents": [
6+
{
7+
"@type": "Telemetry",
8+
"name": "sensorReading",
9+
"schema": "double"
10+
},
11+
{
12+
"@type": "Command",
13+
"name": "getInterval",
14+
"response": {
15+
"name": "getIntervalResponse",
16+
"schema": "integer"
17+
}
18+
},
19+
{
20+
"@type": "Command",
21+
"name": "setInterval",
22+
"request": {
23+
"name": "setIntervalRequest",
24+
"schema": "integer"
25+
},
26+
"response": {
27+
"name": "setIntervalResponse",
28+
"schema": "integer"
29+
}
30+
}
31+
]
32+
}
33+

0 commit comments

Comments
 (0)