Skip to content

Conversation

@ChenCheng368
Copy link

From CSE code-with customer engagement, we observe that there is no sample of module direct method in Azure IoT Python SDK from MS docs/repo, and only have sample of device direct method.

Thus we are writing this sample of Azure IoT Module Direct Method. The sample is to update configuration parameter in the IoT Edge module via invoking module Direct Method from IoT Hub to send the new configuration parameter to the edge.

Azure IoT Edge PR checklist:

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines and Best Practices

  • I have read the contribution guidelines.
  • Title of the pull request is clear and informative.
  • Description of the pull request includes a concise summary of the enhancement or bug fix.

Testing Guidelines

  • Pull request includes test coverage for the included changes.
  • Description of the pull request includes
    • concise summary of tests added/modified
    • local testing done.

Draft PRs

  • Open the PR in Draft mode if it is:
    • Work in progress or not intended to be merged.
    • Encountering multiple pipeline failures and working on fixes.

Note: We use the kodiakhq bot to merge PRs once the necessary checks and approvals are in place. When it merges a PR, kodiakhq converts the PR title to the commit title, PR description to the commit description, and squashes all the commits in the PR to a single commit. The net effect is that entire PR becomes a single commit. Please follow the best practices mentioned here for the PR title and description

@ChenCheng368
Copy link
Author

ChenCheng368 commented Jul 30, 2022

During code-with customer engegements, we witness that there is no existing module direct method sample in Azure iot Python SDK in existing MS repo, only device direct method sample available.
I wrote the sample for module level to accelerate the development works. This pattern helps customer to clear C2D comms blockings, and also helps the other customer for deployment verification.

-- Chen Cheng from CSE IoT Tech Domain Solution Area

@veyalla
Copy link

veyalla commented Aug 19, 2022

@ChenCheng368 - please contribute this sample to the Python SDK repo: https://github.com/Azure/azure-iot-sdk-python/tree/main/samples/async-edge-scenarios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants