Skip to content

Commit 0f893a5

Browse files
committed
Updating the device object example
1 parent f1b24b1 commit 0f893a5

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

articles/iot-central/preview/howto-export-data.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -204,23 +204,25 @@ This is an example message about devices and properties data in event hub or Ser
204204
"body":{
205205
"id": "<device Id>",
206206
"etag": "<etag>",
207-
"displayName": "Test Device",
207+
"displayName": "Sensor 1",
208208
"instanceOf": "<device template Id>",
209209
"simulated": false,
210210
"provisioned": true,
211211
"approved": true,
212212
"properties": {
213-
"testComponent": {
214-
"testProperty": "test property value",
213+
"sensorComponent": {
214+
"setTemp": "30",
215+
"fwVersion": "2.0.1",
216+
"status": { "first": "first", "second": "second" },
215217
"$metadata": {
216-
"testProperty": {
217-
"desiredValue": "test property value",
218+
"setTemp": {
219+
"desiredValue": "30",
218220
"desiredVersion": 3,
219221
"desiredTimestamp": "2020-02-01T17:15:08.9284049Z",
220222
"ackVersion": 3
221223
},
222-
"testReadOnly": { "ackVersion": 3 },
223-
"testComplex": {
224+
"fwVersion": { "ackVersion": 3 },
225+
"status": {
224226
"desiredValue": {
225227
"first": "first",
226228
"second": "second"
@@ -230,11 +232,10 @@ This is an example message about devices and properties data in event hub or Ser
230232
"ackVersion": 2
231233
}
232234
},
233-
"testReadOnly": "test read-only property value",
234-
"testComplex": { "first": "first", "second": "second" }
235+
235236
}
236237
},
237-
"cloudProperties": { "testCloudProperty": "test cloud property value" }
238+
"installDate": { "installDate": "2020-02-01" }
238239
},
239240
"annotations":{
240241
"iotcentral-message-source":"devices",
@@ -254,25 +255,28 @@ This is an example snapshot containing devices and properties data in Blob Stora
254255

255256
```json
256257
{
258+
"body":{
257259
"id": "<device Id>",
258260
"etag": "<etag>",
259-
"displayName": "Test Device",
261+
"displayName": "Sensor 1",
260262
"instanceOf": "<device template Id>",
261263
"simulated": false,
262264
"provisioned": true,
263265
"approved": true,
264266
"properties": {
265-
"testComponent": {
266-
"testProperty": "test property value",
267+
"sensorComponent": {
268+
"setTemp": "30",
269+
"fwVersion": "2.0.1",
270+
"status": { "first": "first", "second": "second" },
267271
"$metadata": {
268-
"testProperty": {
269-
"desiredValue": "test property value",
272+
"setTemp": {
273+
"desiredValue": "30",
270274
"desiredVersion": 3,
271275
"desiredTimestamp": "2020-02-01T17:15:08.9284049Z",
272276
"ackVersion": 3
273277
},
274-
"testReadOnly": { "ackVersion": 3 },
275-
"testComplex": {
278+
"fwVersion": { "ackVersion": 3 },
279+
"status": {
276280
"desiredValue": {
277281
"first": "first",
278282
"second": "second"
@@ -282,11 +286,10 @@ This is an example snapshot containing devices and properties data in Blob Stora
282286
"ackVersion": 2
283287
}
284288
},
285-
"testReadOnly": "test read-only property value",
286-
"testComplex": { "first": "first", "second": "second" }
289+
287290
}
288291
},
289-
"cloudProperties": { "testCloudProperty": "test cloud property value" }
292+
"installDate": { "installDate": "2020-02-01" }
290293
}
291294
```
292295

@@ -324,7 +327,7 @@ This is an example message about device templates data in event hub or Service B
324327
{
325328
"@id": "<component Id>",
326329
"@type": ["InterfaceInstance"],
327-
"name": "Sensor component",
330+
"name": "sensorComponent",
328331
"schema": {
329332
"@id": "<interface Id>",
330333
"@type": ["Interface"],
@@ -391,7 +394,7 @@ This is an example message about device templates data in event hub or Service B
391394
"schema": "string"
392395
},
393396
"displayName": "Configure sensor",
394-
"name": "sensorconfig"
397+
"name": "sensorConfig"
395398
}
396399
]
397400
}

0 commit comments

Comments
 (0)