locked
How to show latest value without refresh RRS feed

  • Question

  • Hi everyone,

    I wanted to show telemetry data from IoT device in web application.

    I managed to send data from IoT hub to Cosmos DB. How can I refresh data without refreshing page?

    I tried connecting web app directly to IoT hub, but it failed, only if I create new application it works. 

    I also tried stream analytics, but data which IoT device is sending is string, so stream analytics gives me error whil trying to understand what the message is. I tried json, csv and avro.

    So, how can I show real time data? Data is sent from device every minute.

    Regards,

    Yerkhan

    Tuesday, February 19, 2019 7:09 PM

Answers

  • Hi Yerkhan,

    Since this not working with your web app, to check what went wrong here, I suggest you contact technical support for deeper analysis of the issue. Refer How to create an Azure support request. If you don’t have a support plan, please send an email to AzCommunity@microsoft.com with the below details to investigate this further.

    Thread URL:

    Subscription ID:

    • Marked as answer by Yerkhan Saturday, March 9, 2019 8:21 AM
    Thursday, February 28, 2019 6:11 PM

All replies

  • Hi Yerkhan,

    What is the error message you are getting?

    You may check the documentation Visualize real-time sensor data from your Azure IoT hub by using the Web Apps feature of Azure App Service and see if it helps.

    Wednesday, February 20, 2019 1:21 PM
  • Hello,

    I've tried using this method, but got errors when setting preferences for apps: both IoT hub and Web app. I tried to repeat these steps in newly created app and it worked. So, I can't recreate application and use it.

    Now I am able to send data to Cosmos DB and get values from it in array. Collection in cosmos db is populated with new element every minute. I got an idea to call data from collection every minute without refreshing page. Is it possible?

    Regards,

    Yerkhan

    Friday, February 22, 2019 11:46 AM
  • Hi Yerkhan,

    Since this not working with your web app, to check what went wrong here, I suggest you contact technical support for deeper analysis of the issue. Refer How to create an Azure support request. If you don’t have a support plan, please send an email to AzCommunity@microsoft.com with the below details to investigate this further.

    Thread URL:

    Subscription ID:

    • Marked as answer by Yerkhan Saturday, March 9, 2019 8:21 AM
    Thursday, February 28, 2019 6:11 PM