-
Notifications
You must be signed in to change notification settings - Fork 72
Feature to support setting twin reported properties during simulation #377
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
Merged
avagraw
merged 49 commits into
Azure:device_client_integration
from
avagraw:device_client_integration
Jun 24, 2021
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
c0f3ffb
Introducing IoT Hub dataplane RBAC support + various improvements (#341)
digimaun 624d849
Iotc command versioning (#340)
valluriraj 4bf999a
Add warning for qos deprecation and update contributing guide (#342)
avagraw b45c7f5
Integrate TQDM to show progress bar when simulator sends d2c messages
avagraw 72df955
remove unused loop varable
avagraw 1714e84
Update progress bar descriptionb
avagraw 43160ec
Merge remote-tracking branch 'other/device_client_integration' into d…
avagraw b268dbe
Iotc command ga (#348)
valluriraj a4baacb
Use enum value instead of literal str. (#349)
digimaun 79bf6cb
Managed identity support for device-identity import and export (#344)
c-ryan-k 616e2c0
Update azext_metadata.json (#351)
digimaun 9ee1ddc
Increment version to v0.10.13
digimaun 3f12f21
Update README.md
digimaun 058648a
Update HISTORY.rst
digimaun 5a251d9
update twin reported properties during simulation
avagraw 70f806f
update unit tests
avagraw 759503a
Add dataplane reset (#352)
vilit1 f4333a9
styling updates
avagraw f82ef12
C2D messaging improvements. (#354)
digimaun 48af558
Digital Twin wait commands (#345)
vilit1 354a98d
Add Identity Storage Account ID param to sentinel values (#355)
c-ryan-k 0e983b8
Using SDK Listener for Twin properties update
avagraw 21e2370
Merge remote-tracking branch 'upstream/device_client_integration' int…
avagraw b498a60
Module identity renew key (#356)
vilit1 72fa744
Update README.md
digimaun e9f8803
merge from remote
avagraw 2ef0a41
Pipeline updates (#359)
c-ryan-k 3b1ded1
Merge remote-tracking branch 'upstream/device_client_integration' int…
avagraw d4fb875
Structured mqtt formatting and eliminate dependency on six
avagraw 1e9ada4
remove indent property not needed any more
avagraw 3170fd8
Check for conditionals before running test jobs (#363)
c-ryan-k bb3c5d9
Update d2c and simulate commands to return errors for non SaS devices…
avagraw acf59c0
Support C2D Message decoding and Add TQDM for HTTP simulation
avagraw e64f460
Update MQTT operations to run on web sockets
avagraw 50e96a2
Merge remote-tracking branch 'upstream/device_client_integration' int…
avagraw 773bfbb
Remove duplicate test already in dev branch
avagraw fecc2d8
Device connection is automatic now
avagraw 260e273
Styling update
avagraw b72ebb3
Merge remote-tracking branch 'upstream/device_client_integration' int…
avagraw c7e0896
Merging changes from dev branch
avagraw 589d678
Feature to support setting twin reported properties during simulation
avagraw 2c0ba67
Merging with upstream
avagraw bbb82ca
Remove extra quote
avagraw 54a46e5
update twin reported properties during simulation
avagraw b7d9d12
update unit tests
avagraw 1487c1f
styling updates
avagraw 782e34b
Using SDK Listener for Twin properties update
avagraw a588704
Support C2D Message decoding and Add TQDM for HTTP simulation
avagraw a15c8a0
Merging changes
avagraw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal of this functionality is to be able to init device side (reported) properties. The implementation here is setting service side desired properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to the desired properties is picked up by the MQTT listener, which automatically updates the reported properties, hence bringing the desired and reported properties in sync.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But you don't need to set desired properties to apply the initial reported state. Devices connecting to IoT Hub will provide their initial state through reported properties without needing to make a modification to desired. Desired twin properties are a solution side interaction and its strange that we would force an update to the desired twin state in order to update the reported side when using facilities of a device simulation command. The primary justification that I see right now is implementation convenience.
You can take a look at this device sample as an example/datapoint - the device connects to iothub initializing a set of reported properties (reflecting a pnp device) with no modification to the desired/solution side interaction.