How can we improve Azure IoT Solution Accelerators?

Device Simulation - "Advanced" Custom Devices

We want to utilise the device simulation service to replicate real iot hardware. Ideally we would be able to mirror the dataflow (telemetry messages, Device Twin Reported Property Updates) and control interface (Direct Methods, C2D Message, Device Twin Desired Property Updates) 1 to 1.

We currently use custom devices to send custom telemetry data and IoT Hub direct methods to control the simulated device.

1. Is it possible to pass a payload with the direct method call, and if yes, how can this payload be accessed in a custom device configuration javascript file?

2. Is it possible to change reported properties and have them updated to the device twin reported property? As far as we see, changing and updating the properties object in the simulated device state.js has no effect at all. (Also, neither the Tags or Properties node in the simulated device json are written to the iot hub device twin.)

3. Is it possible to have the simulated device react to changes in the device twin desired properties?

If there is documentation about any of the above questions please point us in the right direction.

2 votes
Sign in
(thinking…)
Password icon
Signed in as (Sign out)

We’ll send you updates on this idea

Marc Ingold shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base