Usman Khalid
Usman Khalid

Reputation: 170

Azure Iot Hub Device to Cloud Communication with Backend

Hi i already have cloud to device communication through Direct Methods. Now I want to setup Device to Backend Communication through Iot Hub , I have read we can do this with device to cloud communication but is there any way we can route these messages to backend app that is my web api.

Upvotes: 0

Views: 340

Answers (2)

Roman Kiss
Roman Kiss

Reputation: 8235

In addition to David's answer, the following screen snippet shows forwarding a telemetry data to the Web App using the Azure Event Grid (Push-Push Pattern) with different subscribers such as the Hybrid Connection, WeebHook and EventGridTrigger function with a SignalR Service output binding:

enter image description here

Upvotes: 1

David Browne - Microsoft
David Browne - Microsoft

Reputation: 88852

is there any way we can route these messages to backend app that is my web api.

Your app can consume the messages directly using the EventHub APIs, or create an Azure Function with an Event Hub Binding.

Upvotes: 1

Related Questions