Skip to content

Commit eb4dc91

Browse files
authored
update pnp model to v2 (#252)
* update pnp model to v2
1 parent c8489a0 commit eb4dc91

File tree

11 files changed

+227
-8
lines changed

11 files changed

+227
-8
lines changed

MXChip/AZ3166/app/nx_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "azure_device_x509_cert_config.h"
2222
#include "azure_pnp_info.h"
2323

24-
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsgmxchip;1"
24+
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsgmxchip;2"
2525

2626
// Device telemetry names
2727
#define TELEMETRY_HUMIDITY "humidity"

Microchip/ATSAME54-XPRO/app/nx_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "azure_device_x509_cert_config.h"
2121
#include "azure_pnp_info.h"
2222

23-
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;1"
23+
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;2"
2424

2525
#define TELEMETRY_TEMPERATURE "temperature"
2626
#define TELEMETRY_INTERVAL_PROPERTY "telemetryInterval"

Microchip/ATSAME54-XPRO/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ You can use the **Termite** utility to monitor communication and confirm that yo
245245
Initializing Azure IoT Hub client
246246
Hub hostname: ***
247247
Device id: ***
248-
Model id: dtmi:azurertos:devkit:gsg;1
248+
Model id: dtmi:azurertos:devkit:gsg;2
249249
Connected to IoTHub
250250
SUCCESS: Azure IoT Hub client initialized
251251

NXP/MIMXRT1050-EVKB/app/nx_client.c

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

2020
#include "fsl_tempmon.h"
2121

22-
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;1"
22+
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;2"
2323

2424
#define TELEMETRY_TEMPERATURE "temperature"
2525
#define TELEMETRY_INTERVAL_PROPERTY "telemetryInterval"

NXP/MIMXRT1060-EVK/app/nx_client.c

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

2020
#include "fsl_tempmon.h"
2121

22-
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;1"
22+
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;2"
2323

2424
#define TELEMETRY_TEMPERATURE "temperature"
2525
#define TELEMETRY_INTERVAL_PROPERTY "telemetryInterval"

Renesas/RSK_RX65N_2MB/app/nx_client.c

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

2020
#include "platform.h"
2121

22-
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;1"
22+
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;2"
2323

2424
#define TELEMETRY_TEMPERATURE "temperature"
2525
#define TELEMETRY_INTERVAL_PROPERTY "telemetryInterval"

Renesas/RSK_RX65N_2MB/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ You can use the **Termite** utility to monitor communication and confirm that yo
242242
Initializing Azure IoT Hub client
243243
Hub hostname: ***
244244
Device id: ***
245-
Model id: dtmi:azurertos:devkit:gsg;1
245+
Model id: dtmi:azurertos:devkit:gsg;2
246246
Connected to IoTHub
247247
SUCCESS: Azure IoT Hub client initialized
248248

STMicroelectronics/STM32L4_L4+/app/nx_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "azure_device_x509_cert_config.h"
2121
#include "azure_pnp_info.h"
2222

23-
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;1"
23+
#define IOT_MODEL_ID "dtmi:azurertos:devkit:gsg;2"
2424

2525
#define TELEMETRY_TEMPERATURE "temperature"
2626
#define TELEMETRY_INTERVAL_PROPERTY "telemetryInterval"

core/model/gsg-2.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"@context": "dtmi:dtdl:context;2",
3+
"@id": "dtmi:azurertos:devkit:gsg;2",
4+
"@type": "Interface",
5+
"displayName": "Getting Started Guide",
6+
"description": "Example model for the Azure RTOS Getting Started Guides",
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": "Property",
20+
"name": "telemetryInterval",
21+
"displayName": "Telemetry Interval",
22+
"description": "Specify the interval in seconds for the telemetry.",
23+
"schema": "integer",
24+
"writable": true
25+
},
26+
{
27+
"@type": "Property",
28+
"name": "ledState",
29+
"displayName": "LED state",
30+
"description": "Returns the current state of the onboard LED.",
31+
"schema": "boolean"
32+
},
33+
{
34+
"@type": "Command",
35+
"name": "setLedState",
36+
"displayName": "Set LED state",
37+
"description": "Sets the state of the onboard LED.",
38+
"request": {
39+
"name": "state",
40+
"displayName": "State",
41+
"description": "True is LED on, false is LED off.",
42+
"schema": "boolean"
43+
}
44+
},
45+
{
46+
"@type": "Component",
47+
"schema": "dtmi:azure:DeviceManagement:DeviceInformation;1",
48+
"name": "deviceInformation",
49+
"displayName": "Device Information",
50+
"description": "Interface with basic device hardware information."
51+
}
52+
]
53+
}

core/model/gsgmxchip-2.json

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
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

Comments
 (0)