Hello @Cédric Melançon ,
I'm not sure what the problem related to the error message.
Did you miss some sort of relationship Type setting?
Regarding:
I also have a technical question if I eventually manage to make this work: Is it possible to access the list of attached devices from an IoT Edge module code?
An IoT Edge module is sandboxed, it has no direct knowledge about child devices.
There are two options to work around this:
- You could provide a list of child devices to the module using eg. Module Twin desired properties (which are persisted in the Module Twin) or a DirectMethod (not persisted)
- Your module can build up a list over time while messages from child devices flow through the module (you have to check the 'var connectionDeviceId = message.ConnectionDeviceId' property for messages coming from child devices).