Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
463 stars 493 forks source link

After Creating Child Device With Twin, Parent Device wont show child device #3368

Open bmasotta-lcg opened 11 months ago

bmasotta-lcg commented 11 months ago

After creating an Azure IoT Child device specifying it's parent scope and using the following method:

registryManager.AddDeviceWithTwinAsync(device, twin)

Notice the twin only contains desired properties and tags values.

In azure IoT Hub the device correctly shows the relation with its parent (you can see "This device has a parent assigned") Also the parent scope points to the parent device.

But when selecting the parent it's not showing any child device.

Using the following method (no twin specification) does not generate the problem:

registryManager.AddDeviceAsync(device)

krismattheus commented 9 months ago

A call to registryManager.AddDevices2Async(devices) gives the same problem. Also SDK version 1.39 An identical bug was fixed some time ago: see #2184