Skip to content

Commit 7fa5114

Browse files
authored
Merge pull request #139238 from dominicbetts/pnp-devguide-fix
Clarify DTDL snippets in conventions article
2 parents fae698f + be6c6e4 commit 7fa5114

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

articles/iot-pnp/concepts-convention.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Sample reported property payload:
7474

7575
The device or module must add the `{"__t": "c"}` marker to indicate that the element refers to a component.
7676

77-
DTDL:
77+
DTDL that references a component:
7878

7979
```json
8080
{
@@ -90,7 +90,11 @@ DTDL:
9090
}
9191
]
9292
}
93+
```
9394

95+
DTDL that defines the component:
96+
97+
```json
9498
{
9599
"@context": "dtmi:dtdl:context;2",
96100
"@id": "dtmi:com:example:Thermostat;1",
@@ -250,7 +254,7 @@ When a device receives multiple reported properties in a single payload, it can
250254

251255
The device or module should confirm that it received the properties by sending reported properties:
252256

253-
DTDL:
257+
DTDL that references a component:
254258

255259
```json
256260
{
@@ -266,7 +270,11 @@ DTDL:
266270
}
267271
]
268272
}
273+
```
269274

275+
DTDL that defines the component:
276+
277+
```json
270278
{
271279
"@context": "dtmi:dtdl:context;2",
272280
"@id": "dtmi:com:example:Thermostat;1",

0 commit comments

Comments
 (0)