Search code examples
azureazure-iot-hubazure-iot-hub-device-management

Read device to cloud messages without CLI, device explorer


I am trying to read D2C messages in android application. I have successfully implemented it using signalR services. But now i want to remove signalR services and read messages like device explorer or cli.

Is there a way to use sockets or any APIs to read D2C messages ?


Solution

  • Your IoT Hub exposes an Event Hub endpoint. You can read messages from the built-in Event Hub endpoint with an Event Hub client. Here is an example using Java