Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.
This repository was archived by the owner on Jul 9, 2020. It is now read-only.

Better support for complex objects in Module Twins #29

@ChristianEder

Description

@ChristianEder

This line of code in the TypeTwin class and also the JsonFlatteningConverter seem to work in a way that complex objects in Module twins are not really supported. Instead, they are flattened into a string - which not only affects the code on the module / device side (the complex object needs to implement IConvertible), but it also affects the actual structure of the Module Twin properties in the IoT Hub module twin, so this also affects the backend side of things.

Can you elaborate on why you are doing this Convert.ChangeType(prop.GetValue(this), typeof(string)), instead of serializing complex objects into the TwinCollection respecting their nested data structure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions