Skip to content

Commit 6cc9cdb

Browse files
committed
example v3
1 parent 8c4aca4 commit 6cc9cdb

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

dtmi/com/example-1.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"@context": [
3+
"dtmi:dtdl:context;3",
4+
"dtmi:dtdl:extension:quantitativeTypes;1"
5+
],
6+
"@id": "dtmi:com:example;1",
7+
"@type": "Interface",
8+
"extends": "dtmi:com:example:base;1",
9+
"contents": [
10+
{
11+
"@type": [ "Property", "Temperature" ],
12+
"name": "propTempInKelvin",
13+
"schema": "double",
14+
"unit": "kelvin"
15+
},
16+
{
17+
"@type": [ "Telemetry", "Temperature" ],
18+
"name": "telTempInKelvin",
19+
"schema": "double",
20+
"unit": "kelvin"
21+
},
22+
{
23+
"@type": "Component",
24+
"name": "myComponent",
25+
"schema": "dtmi:com:example:base;1"
26+
}
27+
]
28+
}

dtmi/com/example/base-1.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"@context": "dtmi:dtdl:context;3",
3+
"@id": "dtmi:com:example:base;1",
4+
"@type": "Interface",
5+
"contents": [
6+
{
7+
"@type": "Property",
8+
"name": "baseProp",
9+
"schema": "dateTime"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)