Please provide us with the following information:
This issue is for a: (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
first of all, I'd like to make it clear I have no experience at all with C#, so it might be the case that this is a very trivial question.
I am trying to follow this tutorial: https://docs.microsoft.com/en-us/azure/digital-twins/how-to-send-twin-to-twin-events
using this function sample: https://github.com/Azure-Samples/azure-digital-twins-getting-started/blob/main/azure-functions/twin-updates/ProcessDTRoutedData.cs
However, I am facing a weird error.
Any log messages given by the failure
N/A
Expected/desired behavior
The idea of this code is that every time a child twin is updated somehow, for example with data coming from an IoT HUB, the parent twin would also be updated. For example, we have a room with 2 thermostats, when there is an update on the thermostats the room temperature would be updated with an average of the temperatures of the thermostats. My issue is the following: if my thermostat 1 has a value of 25oC and thermostat 2 has a value of 27oC at timestep 1 my room temperature should be 26oC, however, I am getting no data, I only get data on the parent twin on timestep 2, when a new update is done on the thermostats, so if at the timestep 2 thermostat 1 has a temperature of 30oC and thermostat 2, a temp of 32oC, the room should show 31oC, however, it shows the 26oC from timestep 1, as you can see we keep having this delayed reaction. to be a bit more specific in my case, I have a device that aggregates (sums) readings from other 4 devices, the total on the aggregator looks off by one iteration every time this function is called
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) Windows 10
Versions
Mention any other details that might be useful
the code I am using can be found here: https://stackoverflow.com/questions/73052487/azure-digital-twins-twin-to-twin-update
Thanks! We'll be in touch soon.