How to see MQTT data in AWS IOT and Azure IOT HUB - azure-iot-hub

I have a MQTT client which publish data (topic) to "AWS IOT" and "Azure IOT HUB".
To see the data into "Azure IOT HUB", I am using "DeviceExplorer":
https://github.com/Azure/azure-iot-sdk-csharp/tree/master/tools/DeviceExplorer
I want to know?
For Azure IOT HUB:
- How I can see the same data in azure portal?
For AWS IOT:
- Is there any similar tool for AWS IOT?
- How I can see the same in AWS portal? (I thought it should be "CloudWatch", but not sure how to use it?)
Any links and reference will be appreciable.

For Azure portal:
There is no built-in feature to see a telemetry data in the Azure IoT Hub portal. However, the following Azure apps can help you:
Azure IoT Central
Time Series Insights
EventHubTrigger Function
In the case of using Visual Studio:
Cloud Explorer

For Azure IOT HUB:
To see the data in the Azure portal, you can go to the "IoT Hub" page and click on the "Monitor" tab. From there, you can view the real-time telemetry data and events from your devices. You can also use the "Data Explorer" feature to view and query your device data.
For AWS IoT:
There is no specific tool similar to Device Explorer for AWS IoT. However, you can use the AWS IoT console to view and monitor your device data.
To view the data in the AWS portal, you can go to the "AWS IoT" page and click on the "Test" tab. From there, you can subscribe to a topic and view the real-time data published by your devices. Alternatively, you can use the "CloudWatch" service to view and monitor your device data. To do this, you can create a "Rule" that forwards your device data to CloudWatch, and then use the CloudWatch console to view the data. You can also use the CloudWatch API to access and query your device data.

Related

Is there a way to connect the data present in Azure IOT hub to IOT Central smart meter application

I have published data to the Azure Iot Hub devices from my hardware devices. Now I want to perform some analysis using the IOT Central's application 'Smart Meter Monitoring' the link to the website is this https://apps.azureiotcentral.com/build/energy.To be more concise, I'm trying to consume the data present in the azure iot hub devices using the the IOT Central's application 'Smart Meter Monitoring' so that i can build dashboards on the data that is consumed. I Have browsed many websites and I am not having any progress in trying to connect azure IOT HUB and the 'Smart Meter Monitoring' application of IOT central. I am beginner in this field want to understand how this integration is made any tutorial or blog will be helpful
You could use this repo https://github.com/IOTD-Americas/iothub-bridge-function in order to re-send all telemetry from IoT Hub to IoT Central using an Azure Function in real time

How to query the build-in IoT-Hub of Azure Digital Twins?

As far as I understand, every instance of Azure Digital Twins Preview brings its own IoT-Hub. A normal Azure IoT-Hub I could query like this (https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-query-language):
SELECT * FROM devices
How do I query the built in IoT-Hub of Azure Digital Twins?
Or isn't it possible to access this IoT-Hub and I always have to use the Digital Twins REST-API?
The current preview of Azure Digital Twins does not allow you to query the IoT Hub. However, at Microsoft Build, a new version of the preview was announced. This will change the structure of the Digital Twins itself and also allow you to bring your own Azure IoT Hub to integrate with. In the Build Book Of News, it is stated that this preview should come this summer.
As Matthijs van der Veer mentioned, Currently, there is no direct access to the IoT Hub created along with Digital Twins. However, in GA we will have the ability for you to bring your own/directly create & associate your own hub. Yes, you need to use Management API to connect the IotHub.
The new capabilities, which will be available in the summer of 2020, include OPEN Modeling Language, live execution environment, easy integration with Azure IoT Hub and other Azure services, and rich query APIs.
For more updates regarding Azure Digital Twins, please check Azure Updates page.

Is it possible to subscribe to Azure IOT Edge Device

Hopefully a simple question, but with all the reading I have done about IOT Edge Devices, I still cannot find an answer.
For my application, I would like to have a local offline view of all the data going into the edge device and an online view from a website. Is it possible to subscribe to all the events in the Edge Device, just like how I am able to subscribe to all the events in the IOT Hub?
Hopefully something like this
Device->IOTEdge->IOTHub->Website
_______________->Local View (offline)
From what I have seen I can use the components to create a website and do this.
If you need a local Azure IoT Edge webpage dashboard then look at Sander van de Velde blog for details and ideas. Sander has also a lot of other very good examples.
https://sandervandevelde.wordpress.com/2018/12/07/create-your-own-local-azure-iot-edge-dashboard/
https://sandervandevelde.wordpress.com/2018/04/20/visualizing-azure-iot-edge-using-local-dashboard/
You just need one nodejs module listening messages from edgeHub and sending messages using websocket connection. Then you can use same or another module to serve static webpage aka your dashboard. You can access this local dashboard from the same local network without any connection to internet. And you can also send your messages to upstream (IoTHub in cloud) and do the same there. I have used nodejs websocket locally in the edge and SignalR to stream data to cloud dashboards.

Why Azure IoTHub is defined as Platform as Service?

I see Azure IoTHub described as Cloud Platform as a Service? could anyone explain why IoTHub is PAAS?
https://azure.microsoft.com/en-in/services/iot-hub/
From the documentation:
Connect, monitor and manage billions of IoT assets—Use Azure IoT Hub to securely connect, monitor and manage billions of devices to develop Internet of Things (IoT) applications. IoT Hub is an open and flexible cloud platform as a service that supports open-source SDKs and multiple protocols.
To provide some context, the following article gives a high level overview of the various Azure IoT services, both PaaS and SaaS: Internet of Things (IoT) technologies and solutions: PaaS and SaaS

Azure Iot sdk - upload blob metadata?

It's great that Azure Iot hub and sdk supports blob uploading. However it seems blob metadata uploading is not there. Any plan to add the feature? It's a very handy feature for small projects.
Or it's already supported but I missed something?
That's correct. There is no method (support) for the blob metadata uploading in the Azure IoT Device Client SDK.
However, the following workaround can be used for this feature. It's based on the uploading files with IoT Hub using the REST API calls.
Step 1: The device ask an Azure IoT Hub for upload references
Step 2: Upload blob and metadata
Step3: Complete the device uploading process:
This feature is tracked by https://github.com/Azure/azure-iot-sdk-csharp/issues/165 for the .NET Azure IoT SDK.