1+ {
2+ "@id" : " dtmi:com:Microchip:WFI32_IoT_WM;2" ,
3+ "@type" : " Interface" ,
4+ "contents" : [
5+ {
6+ "@type" : [
7+ " Telemetry" ,
8+ " Temperature"
9+ ],
10+ "description" : {
11+ "en" : " Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor."
12+ },
13+ "displayName" : {
14+ "en" : " Temperature (WFI32-IoT)"
15+ },
16+ "name" : " WFI32IoT_temperature" ,
17+ "schema" : " integer" ,
18+ "unit" : " degreeCelsius"
19+ },
20+ {
21+ "@type" : [
22+ " Telemetry" ,
23+ " Illuminance"
24+ ],
25+ "description" : {
26+ "en" : " Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor."
27+ },
28+ "displayName" : {
29+ "en" : " Brightness from Light Sensor (WFI32-IoT)"
30+ },
31+ "name" : " WFI32IoT_light" ,
32+ "schema" : " integer" ,
33+ "unit" : " lux"
34+ },
35+ {
36+ "@type" : [
37+ " Telemetry" ,
38+ " Pressure"
39+ ],
40+ "displayName" : {
41+ "en" : " Pressure (ULP Click)"
42+ },
43+ "name" : " ULP_pressure" ,
44+ "schema" : " double" ,
45+ "unit" : " pascal"
46+ },
47+ {
48+ "@type" : [
49+ " Telemetry" ,
50+ " Temperature"
51+ ],
52+ "displayName" : {
53+ "en" : " Temperature (ULP Click)"
54+ },
55+ "name" : " ULP_temperature" ,
56+ "schema" : " double" ,
57+ "unit" : " degreeCelsius"
58+ },
59+ {
60+ "@type" : [
61+ " Telemetry" ,
62+ " Pressure"
63+ ],
64+ "displayName" : {
65+ "en" : " Pressure (VAV Click)"
66+ },
67+ "name" : " VAV_pressure" ,
68+ "schema" : " double" ,
69+ "unit" : " pascal"
70+ },
71+ {
72+ "@type" : [
73+ " Telemetry" ,
74+ " Temperature"
75+ ],
76+ "displayName" : {
77+ "en" : " Temperature (VAV Click)"
78+ },
79+ "name" : " VAV_temperature" ,
80+ "schema" : " double" ,
81+ "unit" : " degreeCelsius"
82+ },
83+ {
84+ "@type" : " Telemetry" ,
85+ "description" : {
86+ "en" : " Event triggered when button is pressed"
87+ },
88+ "displayName" : {
89+ "en" : " Button Push Event"
90+ },
91+ "name" : " button_event" ,
92+ "schema" : {
93+ "@type" : " Object" ,
94+ "fields" : [
95+ {
96+ "name" : " button_name" ,
97+ "schema" : " string"
98+ },
99+ {
100+ "name" : " press_count" ,
101+ "schema" : " integer"
102+ }
103+ ]
104+ }
105+ },
106+ {
107+ "@type" : " Property" ,
108+ "description" : {
109+ "en" : " Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected."
110+ },
111+ "displayName" : {
112+ "en" : " Blue LED state"
113+ },
114+ "name" : " led_b" ,
115+ "schema" : " dtmi:com:Microchip:WFI32_IoT_WM:LedState;1" ,
116+ "writable" : false
117+ },
118+ {
119+ "@type" : " Property" ,
120+ "description" : {
121+ "en" : " The current state of the Green LED. When it is on, WFI32-IoT is connected to Cloud."
122+ },
123+ "displayName" : {
124+ "en" : " Green LED state"
125+ },
126+ "name" : " led_g" ,
127+ "schema" : " dtmi:com:Microchip:WFI32_IoT_WM:LedState;1" ,
128+ "writable" : false
129+ },
130+ {
131+ "@type" : " Property" ,
132+ "description" : {
133+ "en" : " The current state of the Red LED. When it is on or blinking, WFI32-IoT has experienced error condition(s)."
134+ },
135+ "displayName" : {
136+ "en" : " Red LED state"
137+ },
138+ "name" : " led_r" ,
139+ "schema" : " dtmi:com:Microchip:WFI32_IoT_WM:LedState;1" ,
140+ "writable" : false
141+ },
142+ {
143+ "@type" : " Property" ,
144+ "description" : {
145+ "en" : " Set the state of the Yellow LED (Off, On, or Blink)."
146+ },
147+ "displayName" : {
148+ "en" : " Yellow LED state"
149+ },
150+ "name" : " led_y" ,
151+ "schema" : " dtmi:com:Microchip:WFI32_IoT_WM:LedState;1" ,
152+ "writable" : true
153+ },
154+ {
155+ "@type" : [
156+ " Property" ,
157+ " TimeSpan"
158+ ],
159+ "description" : {
160+ "en" : " Sets interval to send telemetry in seconds."
161+ },
162+ "displayName" : {
163+ "en" : " Telemetry Interval"
164+ },
165+ "name" : " telemetryInterval" ,
166+ "schema" : " integer" ,
167+ "unit" : " second" ,
168+ "writable" : true
169+ },
170+ {
171+ "@type" : " Command" ,
172+ "description" : {
173+ "en" : " Reboot WFI32 IoT with the specified delay (e.g. PT5S for 5 seconds)."
174+ },
175+ "displayName" : {
176+ "en" : " Reboot"
177+ },
178+ "name" : " reboot" ,
179+ "request" : {
180+ "@type" : " CommandPayload" ,
181+ "description" : {
182+ "en" : " Number of seconds to delay reboot (e.g. PT5S for 5 seconds)."
183+ },
184+ "displayName" : {
185+ "en" : " Reboot Delay"
186+ },
187+ "name" : " delay" ,
188+ "schema" : " duration"
189+ },
190+ "response" : {
191+ "@type" : " CommandPayload" ,
192+ "displayName" : {
193+ "en" : " Response for command"
194+ },
195+ "name" : " response" ,
196+ "schema" : {
197+ "@type" : " Object" ,
198+ "fields" : [
199+ {
200+ "displayName" : {
201+ "en" : " Message from reboot handler"
202+ },
203+ "name" : " status" ,
204+ "schema" : " string"
205+ },
206+ {
207+ "displayName" : {
208+ "en" : " Number of seconds to delay the reboot"
209+ },
210+ "name" : " delay" ,
211+ "schema" : " integer"
212+ }
213+ ]
214+ }
215+ }
216+ },
217+ {
218+ "@type" : " Command" ,
219+ "description" : {
220+ "en" : " Send a text message for the WFI32-IoT to receive and process."
221+ },
222+ "displayName" : {
223+ "en" : " Send Message"
224+ },
225+ "name" : " sendMsg" ,
226+ "request" : {
227+ "@type" : " CommandPayload" ,
228+ "description" : {
229+ "en" : " Text message to send to WFI32-IoT"
230+ },
231+ "displayName" : {
232+ "en" : " Message"
233+ },
234+ "name" : " payload" ,
235+ "schema" : {
236+ "@type" : " Object" ,
237+ "fields" : [
238+ {
239+ "displayName" : {
240+ "en" : " String to send"
241+ },
242+ "name" : " sendMsgString" ,
243+ "schema" : " string"
244+ }
245+ ]
246+ }
247+ },
248+ "response" : {
249+ "@type" : " CommandPayload" ,
250+ "displayName" : {
251+ "en" : " Response for command"
252+ },
253+ "name" : " response" ,
254+ "schema" : {
255+ "@type" : " Object" ,
256+ "fields" : [
257+ {
258+ "displayName" : {
259+ "en" : " Message from send message handler"
260+ },
261+ "name" : " status" ,
262+ "schema" : " string"
263+ }
264+ ]
265+ }
266+ }
267+ },
268+ {
269+ "@id" : " dtmi:com:Microchip:WFI32_IoT_WM:press_count;1" ,
270+ "@type" : [
271+ " Telemetry"
272+ ],
273+ "displayName" : {
274+ "en" : " Button Press Count"
275+ },
276+ "name" : " press_count" ,
277+ "schema" : " double"
278+ }
279+ ],
280+ "description" : {
281+ "en" : " Reports device temperature, light intensity, and the current state of the 2 user buttons & 4 LEDs."
282+ },
283+ "displayName" : {
284+ "en" : " WFI32-IoT WM"
285+ },
286+ "schemas" : [
287+ {
288+ "@id" : " dtmi:com:Microchip:WFI32_IoT_WM:LedState;1" ,
289+ "@type" : " Enum" ,
290+ "enumValues" : [
291+ {
292+ "@id" : " dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1" ,
293+ "displayName" : {
294+ "en" : " LED Off"
295+ },
296+ "enumValue" : 0 ,
297+ "name" : " Off"
298+ },
299+ {
300+ "@id" : " dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1" ,
301+ "displayName" : {
302+ "en" : " LED On"
303+ },
304+ "enumValue" : 1 ,
305+ "name" : " On"
306+ },
307+ {
308+ "@id" : " dtmi:com:Microchip:WFI32_IoT_WM:LedState:Blink;1" ,
309+ "displayName" : {
310+ "en" : " LED Blinking"
311+ },
312+ "enumValue" : 2 ,
313+ "name" : " Blink"
314+ }
315+ ],
316+ "valueSchema" : " integer"
317+ }
318+ ],
319+ "@context" : [
320+ " dtmi:iotcentral:context;2" ,
321+ " dtmi:dtdl:context;2"
322+ ]
323+ }
0 commit comments