You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build my module with this change and i deploy it on my device.
When I test this change, I see the following message at the module launch: INFO get_twin(async_clients.py:442): Getting twin
--> as expected
But one hour later and each following hour, I see: INFO _handle_pipeline_event(pipeline_stages_iothub.py:129): EnsureDesiredPropertiesStage: Reconnected. Getting twin
--> not expected with ensure_desired_properties parameter at False.
I try the following hack after the call to create_from_edge_environment without kwargs parameter:
And with this hack, the following message disappear each hour as expected: INFO _handle_pipeline_event(pipeline_stages_iothub.py:129): EnsureDesiredPropertiesStage: Reconnected. Getting twin
The kwargs parameter that can contain ensure_desired_properties parameter is processed but after that, the ensure_desired_properties parameter is set to True. So, it is not possible to set this parameter to False.
Do you have a solution for this issue?
The text was updated successfully, but these errors were encountered:
I try to disable the following feature:
Fetching the latest twin when reconnecting
.I use the
azure-iot-sdk-python
v2.12.0
.In the release, I see:
Fetching the latest twin when reconnecting is now optional (using the ensure_desired_properties kwarg)
So, I try to set to
False
this parameter with the following call when I create my module client:I build my module with this change and i deploy it on my device.
When I test this change, I see the following message at the module launch:
INFO get_twin(async_clients.py:442): Getting twin
--> as expected
But one hour later and each following hour, I see:
INFO _handle_pipeline_event(pipeline_stages_iothub.py:129): EnsureDesiredPropertiesStage: Reconnected. Getting twin
--> not expected with
ensure_desired_properties parameter
atFalse
.I try the following hack after the call to
create_from_edge_environment
withoutkwargs
parameter:And with this hack, the following message disappear each hour as expected:
INFO _handle_pipeline_event(pipeline_stages_iothub.py:129): EnsureDesiredPropertiesStage: Reconnected. Getting twin
I find in the SDK code the following lines:
The
kwargs
parameter that can containensure_desired_properties
parameter is processed but after that, theensure_desired_properties
parameter is set toTrue
. So, it is not possible to set this parameter toFalse
.Do you have a solution for this issue?
The text was updated successfully, but these errors were encountered: