Setting desired property in device twin sends the full content of the device twin instead of partial update

Guillaume 25 Reputation points
2024-09-19T09:29:59.1666667+00:00

Hello,

I am editing the device twin of my test device using the Azure IoT hub web portal. I added a single new desired property and I noticed that the full content of the device twin is received by my test device (including all the other properties I have not changed).

I would expect my device to receive a partial twin update containing only the modified property. Do I need to change settings on the web portal to send partial instead of full updates?

Thanks!

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,192 questions
0 comments No comments
{count} vote

Accepted answer
  1. Sander van de Velde | MVP 32,726 Reputation points MVP
    2024-09-19T20:56:11.8433333+00:00

    Hello @Guillaume,

    welcome to this moderated Azure community forum.

    The behavior you experience, receiving the full set of desired properties even when only one is changed, is the default behavior and cannot be modified.

    The set of all desired properties must be seen as the complete desired state and must be handled as being 'atomic' (as in 'uncuttable').

    The method used to handle desired property changes must be smart enough (or dump enough) to just process each separate desired property first. Only then, any action needed on any desired property change must be executed.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.