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.
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.