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.
3,133 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,189 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
637 questions
0 comments No comments
{count} vote

Accepted answer
  1. Sander van de Velde | MVP 32,641 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  
    
    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 :)


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.