Skip to content

Commit 958e592

Browse files
committed
Updated doc for twin nesting/key/value increase improvements.
1 parent b2efa4d commit 958e592

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@ The [Azure IoT device SDKs](iot-hub-devguide-sdks.md) make it easy to use the pr
240240

241241
Tags, desired properties, and reported properties are JSON objects with the following restrictions:
242242

243-
* All keys in JSON objects are case-sensitive 64 bytes UTF-8 UNICODE strings. Allowed characters exclude UNICODE control characters (segments C0 and C1), and `.`, `$`, and SP.
243+
* All keys in JSON objects are UTF-8 encoded, case-sensitive, and up-to 1KB in length. Allowed characters exclude UNICODE control characters (segments C0 and C1), and `.`, `$`, and SP.
244244

245245
* All values in JSON objects can be of the following JSON types: boolean, number, string, object. Arrays are not allowed. The maximum value for integers is 4503599627370495 and the minimum value for integers is -4503599627370496.
246246

247-
* All JSON objects in tags, desired, and reported properties can have a maximum depth of 5. For instance, the following object is valid:
247+
* All JSON objects in tags, desired, and reported properties can have a maximum depth of 10. For instance, the following object is valid:
248248

249249
```json
250250
{
@@ -255,7 +255,17 @@ Tags, desired properties, and reported properties are JSON objects with the foll
255255
"three": {
256256
"four": {
257257
"five": {
258-
"property": "value"
258+
"six": {
259+
"seven": {
260+
"eight": {
261+
"nine": {
262+
"ten": {
263+
"property": "value"
264+
}
265+
}
266+
}
267+
}
268+
}
259269
}
260270
}
261271
}
@@ -266,7 +276,7 @@ Tags, desired properties, and reported properties are JSON objects with the foll
266276
}
267277
```
268278

269-
* All string values can be at most 512 bytes in length.
279+
* All string values can be at most 4 KB in length.
270280

271281
## Device twin size
272282

includes/iot-hub-limits.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ The following table lists the limits that apply to IoT Hub resources.
3535
| Maximum delivery count for feedback messages <br/> in response to a cloud-to-device message |100 |
3636
| Maximum TTL for feedback messages in <br/> response to a cloud-to-device message |2 days |
3737
| [Maximum size of device twin](../articles/iot-hub/iot-hub-devguide-device-twins.md#device-twin-size) <br/> (tags, reported properties, and desired properties) | 8 KB |
38-
| Maximum size of device twin string value | 4 KB |
39-
| [Maximum depth of object in device twin](../articles/iot-hub/iot-hub-devguide-device-twins.md#tags-and-properties-format) | 5 |
38+
| Maximum length of device twin string key | 1 KB |
39+
| Maximum length of device twin string value | 4 KB |
40+
| [Maximum depth of object in device twin](../articles/iot-hub/iot-hub-devguide-device-twins.md#tags-and-properties-format) | 10 |
4041
| Maximum size of direct method payload | 128 KB |
4142
| Job history maximum retention | 30 days |
4243
| Maximum concurrent jobs | 10 (for S3), 5 for (S2), 1 (for S1) |

0 commit comments

Comments
 (0)