IOT Hub thermostat shows values 0 when run in the sample client dmeo

Nikunj Phutela 86 Reputation points
2020-08-06T13:12:58.777+00:00

I was following the digital twins end to end scenario(https://learn.microsoft.com/en-us/azure/digital-twins/tutorial-end-to-end) and whilst following the demo, after the creation of the client application and the IOT Hub, the DeviceSimulator file shows values being simulated for the sensors(devicesim.png]) but the ADTE2ESample.sln file does not show the values, instead only shows 0,instead of the actual values(clientapp.png), is there any fix for this?16079-devicesim.png

16080-clientapp.png

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
229 questions
{count} votes

Accepted answer
  1. QuantumCache 20,266 Reputation points
    2020-08-07T23:01:53.78+00:00

    Hello @Nikunj Phutela , Could you please confirm if you see the logs of the Function App consisting of any errors?

    We have validated the sample and found no issues with either Function app or the ADT sample.

    Troubleshooting steps:

    Step1:

    Please confirm if you have connected the IoTHub with the right Function name 'ProcessDTRoutedData'.

    16459-image.png

    Step2:

    Now enable the Monitor logs for the Function app(make use of Application insights) and then check the logs [Keep the IoT Device simulated App running during this observation],

    Please confirm if you are seeing any logs for Function named 'ProcessHubToDTEvents'

    16460-image.png

    Step 3:

    The output is visible in the console windows when we run ObserveProperties thermostat67 Temperature

    16516-image.png

    REPRO of issue:

    When I have configured the IoTHub with incorrect Function name I was unable to see any outputs in the console log.

    The below image shows that I have connected IoThub to incorrect function name and the logs also show the failures.

    16551-image.png

    Please let us know if you need further help in this matter.


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.