Skip to content

Commit 0e1021b

Browse files
committed
Update model definition (description)
1 parent c57f984 commit 0e1021b

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

include/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#endif // USE_CLI
3636

37-
#define IOT_CONFIG_MODEL_ID "dtmi:seeedkk:wioterminal:wioterminal_aziot_example;4"
37+
#define IOT_CONFIG_MODEL_ID "dtmi:seeedkk:wioterminal:wioterminal_aziot_example;5"
3838

3939
#define TOKEN_LIFESPAN 3600
4040

seeedkk-wioterminal-wioterminal_aziot_example.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2-
"@id": "dtmi:seeedkk:wioterminal:wioterminal_aziot_example;4",
2+
"@id": "dtmi:seeedkk:wioterminal:wioterminal_aziot_example;5",
33
"@type": "Interface",
44
"@context": "dtmi:dtdl:context;2",
55
"displayName": "Seeed Wio Terminal",
6+
"description": {
7+
"en": "X,Y,Z-axis, brightness and button click polling result. Buzzer can be beeped by settings on cloud.",
8+
"ja": "加速度X,Y,Zと光量を定期的に通知します。また、右、中央、左ボタンのクリックも通知します。クラウドからの指示でブザーが鳴ります。"
9+
},
610
"contents": [
711
{
812
"@type": [
@@ -15,6 +19,10 @@
1519
"en": "Acceleration X",
1620
"ja": "加速度 X"
1721
},
22+
"description": {
23+
"en": "X-axis value of accelerometer.",
24+
"ja": "加速度センサーのX値です。"
25+
},
1826
"schema": "double"
1927
},
2028
{
@@ -28,6 +36,10 @@
2836
"en": "Acceleration Y",
2937
"ja": "加速度 Y"
3038
},
39+
"description": {
40+
"en": "Y-axis value of accelerometer.",
41+
"ja": "加速度センサーのY値です。"
42+
},
3143
"schema": "double"
3244
},
3345
{
@@ -41,6 +53,10 @@
4153
"en": "Acceleration Z",
4254
"ja": "加速度 Z"
4355
},
56+
"description": {
57+
"en": "Z-axis value of accelerometer.",
58+
"ja": "加速度センサーのZ値です。"
59+
},
4460
"schema": "double"
4561
},
4662
{
@@ -50,6 +66,10 @@
5066
"en": "Light intensity",
5167
"ja": "光量"
5268
},
69+
"description": {
70+
"en": "Light sensor value (%) on backside.",
71+
"ja": "背面にある光センサーの光量です。単位は%。"
72+
},
5373
"schema": "integer"
5474
},
5575
{
@@ -59,6 +79,10 @@
5979
"en": "Right button",
6080
"ja": "右ボタン"
6181
},
82+
"description": {
83+
"en": "Right button pushed down.",
84+
"ja": "右ボタンの押下通知です。"
85+
},
6286
"schema": {
6387
"@type": "Enum",
6488
"valueSchema": "string",
@@ -78,9 +102,13 @@
78102
"@type": "Telemetry",
79103
"name": "centerButton",
80104
"displayName": {
81-
"en": "Center button",
105+
"en": "Middle button",
82106
"ja": "中央ボタン"
83107
},
108+
"description": {
109+
"en": "Middle button pushed down.",
110+
"ja": "中央ボタンの押下通知です。"
111+
},
84112
"schema": {
85113
"@type": "Enum",
86114
"valueSchema": "string",
@@ -103,6 +131,10 @@
103131
"en": "Left button",
104132
"ja": "左ボタン"
105133
},
134+
"description": {
135+
"en": "Left button pushed down.",
136+
"ja": "左ボタンの押下通知です。"
137+
},
106138
"schema": {
107139
"@type": "Enum",
108140
"valueSchema": "string",
@@ -125,6 +157,10 @@
125157
"en": "Ring buzzer",
126158
"ja": "ブザーを鳴らす"
127159
},
160+
"description": {
161+
"en": "Beep the buzzer for specified duration.",
162+
"ja": "指定された期間、ブザー音を鳴らします。"
163+
},
128164
"request": {
129165
"name": "duration",
130166
"displayName": {

0 commit comments

Comments
 (0)