Skip to content

Commit 1f0fc07

Browse files
committed
fixed some errors around metadata
1 parent ffa86c0 commit 1f0fc07

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

articles/iot-hub/iot-hub-devguide-device-twins.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ Tags, desired properties, and reported properties are JSON objects with the foll
282282

283283
## Device twin size
284284

285-
IoT Hub enforces an 8 KB size limit on the value of `tags`, and a 32 KB size limit each on the value of `properties/desired` and `properties/reported`. These totals are exclusive of read-only elements, such as [device twin metadata](#device-twin-metadata) elements like `$etag`, `$version`, and `$lastUpdated`.
285+
IoT Hub enforces an 8 KB size limit on the value of `tags`, and a 32 KB size limit each on the value of `properties/desired` and `properties/reported`. These totals are exclusive of read-only elements like `$etag`, `$version`, and `$metadata/$lastUpdated`.
286286

287-
The size is computed by counting all characters, excluding UNICODE control characters (segments C0 and C1) and spaces that are outside of string constants.
287+
The size is computed by counting all characters, excluding UNICODE control characters (segments C0 and C1) and spaces that are outside of string constants.
288288

289-
For example, consider the following JSON fragment for reported properties. Device twin metadata elements like `$version` and `$lastUpdated` are not shown as they are excluded from computation of the property size limit.
289+
For example, consider the following JSON fragment for reported properties. Read-only elements like `$version` and `$metadata/$lastUpdated` are not shown as they are excluded from computation of the property size limit.
290290

291291
```json
292292
"properties" : {
@@ -304,7 +304,7 @@ For example, consider the following JSON fragment for reported properties. Devic
304304
}
305305
```
306306

307-
The size of the reported properties would be computed based on the UTF-8 encoded value of the following JSON, which represents the value of `properties/reported` with the white-space removed:
307+
The size of the reported properties for this fragment would be computed based on the UTF-8 encoded value of the following JSON, which represents the value of `properties/reported` with the white-space removed:
308308

309309
```json
310310
{"intProperty":14000,"boolProperty":true,"floatProperty":1.463E+2,"stringProperty":"This is a string value","objectProperty":{"property1":1,"property2":2}}
@@ -367,8 +367,6 @@ For example:
367367

368368
This information is kept at every level (not just the leaves of the JSON structure) to preserve updates that remove object keys.
369369

370-
In addition to timestamp metadata, IoT Hub also maintains read-only, versioning metadata. This metadata is represented by the `$etag` element for tags and in the `$version` element for the desired and reported properties. See the next section for details.
371-
372370
## Optimistic concurrency
373371

374372
Tags, desired, and reported properties all support optimistic concurrency.

0 commit comments

Comments
 (0)