Connect Asp.Net Web App to hardware like temperature sensor to control it?

Arshad Nazeer 21 Reputation points
2021-12-28T18:23:16.433+00:00

What should I know? I want to control temperature sensor with Asp.Net web app.

.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
30 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 33,051 Reputation points MVP
    2021-12-29T17:55:23.827+00:00

    Hello @Arshad Nazeer ,

    connecting an IoT device to the cloud to see telemetry and also control it from the cloud is a common scenario.

    There are a number of scenarios available you could consider, these depend on a few things: what are the capabilities of your device (is it internet-connected, what telemetry does it share), do you want to build it on PaaS resources or do you want to make use of SaaS, etc.

    The most common pattern is connecting your device to an IoT Hub so it has a secure (two-way) cloud connection. From there, telemetry is moving through the cloud either as events or persisted. Within this process, the telemetry is usually aggregated, filtered, enriched with other data or alerts are derived.

    Regarding your ASP.Net website, polling for data updates is not that efficient. Websockets (eg. Azure SignalR services) are a welcome and efficient addition for live updates of your webpages all over the world.

    The IoT Hub also supports the ability to send commands back to devices. The Azure IoT Hub SDK helps you to program against that interface and control your devices.

    The IoT Hub documentation comes with a number of tutorials so you learn about sending telemetry and controlling devices (use the programming language of your choice).

    MS Learn has a lot of tutorials and hands-on labs about IoT. Take a look at this extensive collection.

    A single post will never cover the complete 'world of IoT'. Please think big but start small and try out what works for you. Just reach out if you have more specific questions.

    0 comments No comments

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.