Azure / iot-plugandplay-models

Repository of IoT Plug and Play models using DTDL
MIT License
58 stars 237 forks source link

Restrictions on device Manufacturer and model? #153

Closed devlie closed 3 years ago

devlie commented 3 years ago

Is there any character set and length restriction on device manufacturer and model properties in dtmi:azure:DeviceManagement:DeviceInformation;1? Thanks.

rido-min commented 3 years ago

@devlie DTDL does not set any limits on instance properties. You should look at this document to find which are the valid characters and size limits for IoT Hub Device Twins.

rido-min commented 3 years ago

@devlie does my previous reply answers your question? if so, can you close this issue?

devlie commented 3 years ago

@rido-min thanks! It looks like there's no meaningful limitation on manufacturer and model, and a user can theoretically set each to be 4KB. Is that correct? Are these two props used anywhere else in IoT Hub or PnP system? If we are building a solution on top of it, can we safely limit them to a shorter length?

rido-min commented 3 years ago

correct, it's up to the user to set the limit. IoT Hub does not makes any special treatment, those are just twin properties.

However upstream solutions like central might have a limit of what they can render. @sandeeppujar do you know what's the limit in central for reported properties?

devlie commented 3 years ago

@sandeeppujar, any idea? Thanks.

sandeeppujar commented 3 years ago

@devlie , IoTC adds no additional limits, they are twin properties in IoT Hub

rido-min commented 3 years ago

@devlie do you need anything else? Otherwise, can you close this issue?

devlie commented 3 years ago

Thanks for the help!