question

ArshadNazeer-5625 avatar image
0 Votes"
ArshadNazeer-5625 asked SandervandeVelde42 edited

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

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

dotnet-iot
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SandervandeVelde42 avatar image
0 Votes"
SandervandeVelde42 answered SandervandeVelde42 edited

Hello @ArshadNazeer-5625 ,

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.