Skip to content

create_from_edge_environment()'s get_twin() is not returning the module twin values #821

@ismaan1998

Description

@ismaan1998

Issue-

I'm reading module twin properties in my edge module.

When i'm using -

client = IoTHubModuleClient.create_from_connection_string("HostName=example.azure-devices.net;DeviceId=example;ModuleId=ExampleModuleId;SharedAccessKey=somekey")
client.get_twin()

I'm able to get the module twin values from ExampleModuleId but when we're using -

client = IoTHubModuleClient.create_from_edge_environment()
client.get_twin()

It's returning - .

{'desired':{}, 'reported':{}}

Note - I'm running this code in edge environment.

Let me know if anything other details needed to debug the issue.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions