MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.27k stars 21.46k forks source link

How to start the temperature/humidity app on device? #9959

Closed MrRoyce closed 6 years ago

MrRoyce commented 6 years ago

I think I have every thing set up, but my chart is still blank. Working with support, they sent a screenshot of their device terminal window that shows the device sending temperature and humidity data. My device just shows the SendEventAsync message as shown in the Get Started tutorial.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

SaurabhSharma-MSFT commented 6 years ago

@MrRoyce Thanks for your feedback! We will investigate and update as appropriate.

asergaz commented 6 years ago

Hello @MrRoyce , can you double check if your value for the key Azure.IoT.IoTHub.ConnectionString is the iothubowner connection string?

image

image

Please also validate that the messages sent by the device have the following json format:

{"messageId":1,"deviceId":"my Device","temperature":22,"humidity":70}

Thank you.

asergaz commented 6 years ago

Hello @MrRoyce . Just checking if you are still blocked or if any of the suggestions above were the solution for your issue? Let us know if we can help further.

Thank you.

MrRoyce commented 6 years ago

Hi there thanks for following up. Yes the connection string is correct. The problem I have is getting the device to Send temperature data.

How do I get the device to do that?

On Wed, Jun 13, 2018 at 09:11 António Sérgio Azevedo < notifications@github.com> wrote:

Hello @MrRoyce https://github.com/MrRoyce . Just checking if you are still blocked or if any of the suggestions above were the solution for your issue? Let us know if we can help further.

Thank you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/9959#issuecomment-396931636, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPZx8TsR7c5KPXdQ-Ny3YXOmZooaAPfks5t8Q-ZgaJpZM4UhG7U .

satishkrishnam commented 6 years ago

I tried to make changes to the code also and ensured that the settings as defined in the documentation. Even now I am getting Blank Chart. I used SimulatedDevice.cs code shared via Git.

Can someone please provide end-to-end solution to this issue. Looks like something very silly is happening somewhere :(. Look forward for your support in fixing this issue

asergaz commented 6 years ago

Hi there. Can you show me how the messages look like on the IoTHub side? To see messages coming in IoTHub you can use Azure IoT Toolkit extension for Visual Studio Code.

Thank you!

MrRoyce commented 6 years ago

Here is the terminal window from my Hub.. Is this what you are asking for?

screen shot 2018-06-05 at 10 08 00 pm

asergaz commented 6 years ago

Hello, I was expecting to see messages coming in with a format like {"messageId":1,"deviceId":"my Device","temperature":22,"humidity":70} after you "Start Monitoring D2C Message"

Which Get Started tutorial did you follow prior to this? To complete the tutorial on this doc successfully you need to firt complete the following:

image

If you set up a simulated device you need to make sure that the messages sent are in Json Format and follows the structure {"messageId":1,"deviceId":"my Device","temperature":22,"humidity":70}.

As an easy test you can use Visual Studio Code to simulate a message on any device already created:

image

image

After that the web app dashboard should have a new entry.

Thank you.

asergaz commented 6 years ago

Hello @MrRoyce did you have any success with the suggestions above? Thanks!

MrRoyce commented 6 years ago

I havn't tried it yet. Do you have time for a skype call?

On Fri, Jun 15, 2018 at 12:26 PM, António Sérgio Azevedo < notifications@github.com> wrote:

Hello @MrRoyce https://github.com/MrRoyce did you have any success with the suggestions above? Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/9959#issuecomment-397673917, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPZx2QNmeLEeBg4e9KLVUl7GCLKr37bks5t8-BSgaJpZM4UhG7U .

asergaz commented 6 years ago

Hello @MrRoyce,

For a skype call and dedicated support to your issue we ask that you please file a support request @ https://aka.ms/azsupt . If you do not have access to a support plan, please reach out @ AZCommunity@microsoft.com with a link to this Doc/Issue as well as your subscription ID and we can help get the support ticket opened for this issue.

PS: If you can share the issues you are still facing here, we can continue the troubleshoot.

Thank you.

asergaz commented 6 years ago

Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.