Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bmasotta-lcg opened this issue Sep 14, 2023 · 1 comment
Labels
bug Something isn't working. IoTSDK Tracks all IoT SDK issues across the board

Comments

@bmasotta-lcg
Copy link

bmasotta-lcg commented Sep 14, 2023

  • OS, version, SKU and CPU architecture used: Windows 11 x64
  • Application's .NET Target Framework : NET 6
  • Device: Amd64 Laptop
  • SDK version used: 1.39

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)

@bmasotta-lcg bmasotta-lcg added the bug Something isn't working. label Sep 14, 2023
@github-actions github-actions bot added the IoTSDK Tracks all IoT SDK issues across the board label Sep 14, 2023
@krismattheus
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. IoTSDK Tracks all IoT SDK issues across the board
Projects
None yet
Development

No branches or pull requests

2 participants