Share via

Azure cloud to device

Sera Nur DARKILIÇ 26 Reputation points
2021-05-06T15:00:23.527+00:00

I am receiving distance value from raspberry pi and monitoring it on Azure iot hub.What I want to do is when distance < 5 I should be informed through email to take out the garbage.
Can you help me?

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

Azure IoT Hub
Azure IoT Hub

An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.

Azure Event Hubs
0 comments No comments

Answer accepted by question author

Sander van de Velde | MVP 37,066 Reputation points MVP
2021-05-07T16:37:38.087+00:00

Hello @Sera Nur DARKILIÇ ,

so the solution looks like this:

device sends messages (with distance) -> IoT Hub    

What you want is:

device sends messages (with distance) -> IoT Hub  -> some logic checks the messages and takes a decision -> email  

In an IoT solution, typically a Stream Analytics job is used because it can take decisions on messages in-flight.

For sending emails, a Logic app (with eg. outlook.com integration) is a nice addition due to the visual editor and business integration with many services.

Then, a possible solution could be:

device sends messages (with distance) -> IoT Hub  -> Stream Analytics Job -> eventhub (as 'glue') -> Logic app -> email  

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sera Nur DARKILIÇ 26 Reputation points
    2021-05-07T20:23:14.557+00:00

    Thank you I already tried this algorithm and it worked :)

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.