1+ {
2+ "@context" : " dtmi:dtdl:context;2" ,
3+ "@id" : " dtmi:azurertos:devkit:gsgmxchip;2" ,
4+ "@type" : " Interface" ,
5+ "displayName" : " MXCHIP Getting Started Guide" ,
6+ "description" : " Example model for the Azure RTOS MXCHIP Getting Started Guide" ,
7+ "contents" : [
8+ {
9+ "@type" : [
10+ " Telemetry" ,
11+ " Temperature"
12+ ],
13+ "name" : " temperature" ,
14+ "displayName" : " Temperature" ,
15+ "unit" : " degreeCelsius" ,
16+ "schema" : " double"
17+ },
18+ {
19+ "@type" : [
20+ " Telemetry" ,
21+ " RelativeHumidity"
22+ ],
23+ "name" : " humidity" ,
24+ "displayName" : " Humidity" ,
25+ "unit" : " percent" ,
26+ "schema" : " double"
27+ },
28+ {
29+ "@type" : [
30+ " Telemetry" ,
31+ " Pressure"
32+ ],
33+ "name" : " pressure" ,
34+ "displayName" : " Pressure" ,
35+ "unit" : " kilopascal" ,
36+ "schema" : " double"
37+ },
38+ {
39+ "@type" : " Telemetry" ,
40+ "name" : " magnetometerX" ,
41+ "displayName" : " Magnetometer X / mgauss" ,
42+ "schema" : " double"
43+ },
44+ {
45+ "@type" : " Telemetry" ,
46+ "name" : " magnetometerY" ,
47+ "displayName" : " Magnetometer Y / mgauss" ,
48+ "schema" : " double"
49+ },
50+ {
51+ "@type" : " Telemetry" ,
52+ "name" : " magnetometerZ" ,
53+ "displayName" : " Magnetometer Z / mgauss" ,
54+ "schema" : " double"
55+ },
56+ {
57+ "@type" : [
58+ " Telemetry" ,
59+ " Acceleration"
60+ ],
61+ "name" : " accelerometerX" ,
62+ "displayName" : " Accelerometer X" ,
63+ "schema" : " double" ,
64+ "unit" : " gForce"
65+ },
66+ {
67+ "@type" : [
68+ " Telemetry" ,
69+ " Acceleration"
70+ ],
71+ "name" : " accelerometerY" ,
72+ "displayName" : " Accelerometer Y" ,
73+ "schema" : " double" ,
74+ "unit" : " gForce"
75+ },
76+ {
77+ "@type" : [
78+ " Telemetry" ,
79+ " Acceleration"
80+ ],
81+ "name" : " accelerometerZ" ,
82+ "displayName" : " Accelerometer Z" ,
83+ "schema" : " double" ,
84+ "unit" : " gForce"
85+ },
86+ {
87+ "@type" : [
88+ " Telemetry" ,
89+ " AngularVelocity"
90+ ],
91+ "name" : " gyroscopeX" ,
92+ "displayName" : " Gyroscope X" ,
93+ "schema" : " double" ,
94+ "unit" : " degreePerSecond"
95+ },
96+ {
97+ "@type" : [
98+ " Telemetry" ,
99+ " AngularVelocity"
100+ ],
101+ "name" : " gyroscopeY" ,
102+ "displayName" : " Gyroscope Y" ,
103+ "schema" : " double" ,
104+ "unit" : " degreePerSecond"
105+ },
106+ {
107+ "@type" : [
108+ " Telemetry" ,
109+ " AngularVelocity"
110+ ],
111+ "name" : " gyroscopeZ" ,
112+ "displayName" : " Gyroscope Z" ,
113+ "schema" : " double" ,
114+ "unit" : " degreePerSecond"
115+ },
116+ {
117+ "@type" : " Property" ,
118+ "name" : " telemetryInterval" ,
119+ "displayName" : " Telemetry Interval" ,
120+ "description" : " Control the frequency of the telemetry loop." ,
121+ "schema" : " integer" ,
122+ "writable" : true
123+ },
124+ {
125+ "@type" : " Property" ,
126+ "name" : " ledState" ,
127+ "displayName" : " LED state" ,
128+ "description" : " Returns the current state of the onboard LED." ,
129+ "schema" : " boolean"
130+ },
131+ {
132+ "@type" : " Command" ,
133+ "name" : " setLedState" ,
134+ "displayName" : " Set LED state" ,
135+ "description" : " Sets the state of the onboard LED." ,
136+ "request" : {
137+ "name" : " state" ,
138+ "displayName" : " State" ,
139+ "description" : " True is LED on, false is LED off." ,
140+ "schema" : " boolean"
141+ }
142+ },
143+ {
144+ "@type" : " Command" ,
145+ "name" : " setDisplayText" ,
146+ "displayName" : " Display Text" ,
147+ "description" : " Display text on screen." ,
148+ "request" : {
149+ "name" : " text" ,
150+ "displayName" : " Text" ,
151+ "description" : " Text displayed on the screen." ,
152+ "schema" : " string"
153+ }
154+ },
155+ {
156+ "@type" : " Component" ,
157+ "schema" : " dtmi:azure:DeviceManagement:DeviceInformation;1" ,
158+ "name" : " deviceInformation" ,
159+ "displayName" : " Device Information" ,
160+ "description" : " Interface with basic device hardware information."
161+ }
162+ ]
163+ }
0 commit comments