By following the instruction with below code:
const { EventHubClient } = require('@azure/event-hubs');
async function main() {
const client = await EventHubClient.createFromIotHubConnectionString(process.env["IOTHUB_CONNECTION_STRING"]);
const hubInfo = await client.getHubRuntimeInformation();
console.log(hubInfo);
await client.close();
}
main().catch((err) => {
console.log(err);
});
I could read Azure IoT Hub messages from built-in endpoints. However, when I route message to a custom endpoint (e.g. Azure Storage containers, Event Hubs), I could no longer read the message.
It there any tool or SDK to help me to read all messages arrived in IoT Hub no matter where the message will be routed?