Share via

Module Twin Offline

Daniel Baylon 6 Reputation points
2022-03-01T03:57:02.917+00:00

We have implemented an automated deployment for the modules with IoT Edge.

The deployment.template.json is set "properties.desired": {} for that module.

When we try to push the change on the module twin, after awhile, it is clears out.

If the device is offline, and we push the desired properties, device will not be able to retrieve the properties since it clears out.

Is there a way to handle offline mode for the module twin? or before it clears out, device was able to capture the properties?

Azure Internet of Things
Azure IoT Edge
Azure IoT Edge

An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.

Azure IoT Hub
Azure IoT Hub

An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.


1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 37,066 Reputation points MVP
    2022-03-01T22:25:53.887+00:00

    Hello @Daniel Baylon ,

    sending this "properties.desired": {}" inside a deployment manifest will erase all current desired properties (if any available).

    Desired properties are readonly from a device perspective. What do you mean with "clears out"? What is happening?

    Can you provide some examples of what you experience?

    Yes, offline devices work with the last known deployment manifest received. Only when the device reconnects, it gets the new deployment manifest.

    There is no 'offline mode' for single modules.

    Was this answer helpful?


Your answer

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