Closed
Description
Describe the feature
Hello,
it would be nice if a get_size()
-Method can be implemented into the ShadowState-Class(es).
The maximum size for Device-Shadow-Documents is usually limited in AWS IoT-Tenants. I would like to check on the device if a created shadow will superseed this known limit before sending it to the Core. Therefore it would be beneficial to have a function returning the actual size of the Device-Shadow-Document.
Best wishes,
flashbanger
Use Case
To split the shadow into multiple shadows in case it will exceed the size limit for a single Device-Shadow-Document
Proposed Solution
get_size() -> int
Method that returns the size of the Shadow-Document in Bytes.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
SDK version used
1.22.2
Environment details (OS name and version, etc.)
Debian Bullseye