question

SeraNurDARKILI-9608 avatar image
1 Vote"
SeraNurDARKILI-9608 asked SandervandeVelde42 commented

Azure cloud to device

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-appsazure-iot-hubazure-event-hubs
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.

SandervandeVelde42 avatar image
1 Vote"
SandervandeVelde42 answered

Hello @SeraNurDARKILI-9608,

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

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.

SeraNurDARKILI-9608 avatar image
0 Votes"
SeraNurDARKILI-9608 answered SandervandeVelde42 commented

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

· 1
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.

Hello @SeraNurDARKILI-9608 ,

Great!

Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.

1 Vote 1 ·