array with dynamic length in device model

Eberhard Voigt 21 Reputation points
2021-01-12T10:28:01.417+00:00

Hello,

is it possile to define an array with a variale length inside the device model of an iot device? I am using the azure-iot-sdk-c on an STM32 controller.
In the SDK there are some maros to declare the device model and serialize/deserialize it.
Can I use the EDM_BINARY for the array definition?
Thank you very much
Ebi

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
393 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Stefan Wick 21 Reputation points Microsoft Employee
    2021-01-26T15:43:20.153+00:00

    I am assuming this question is about defining the device model using DTDL for your IoT Plug and Play device.

    Arrays with dynamic length are currently supported for telemetry, but not yet for properties in your model. We plan to add support for arrays in properties in a future update soon.

    1 person found this answer helpful.
    0 comments No comments