mqtt-explorer | MQTT Explorer - MQTT Subscriber client
kandi X-RAY | mqtt-explorer Summary
kandi X-RAY | mqtt-explorer Summary
The MQTT Explorer subscriber client is designed to explore MQTT topics in your IoT Platform, show and sort statistics. It is useful if you want to analyze how much and what kind of information flows from publishers to the selected topic hierarchy. Commercial MQTT brokers have extensive global statistics in the $SYS topic, as detailed at , but not per-topic statistics. Furthermore, there is no easy way to explore what's happening in real-time. The existing simple open-source mqtt-stats subscriber client already displays per-topic statistics, eg. like mqtt-spy or MQTTLens, but more. It uses GTK to present a GUI. This utility allows you to analyze quantitatively the published topics underneath a wildcard topic and answer such questions as "which topic generates the most messages?" and "which topic generates the most traffic?". You can sort by messages/second to get the most active topics. The MQTT Explorer improves on this to explore interesting topics. It allows to filter topics, hides uninteresting topics, and allows to archive payloads for later replay by MIMIC MQTT Simulator .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create the GUI .
- add a new entry
- Called when a message is received .
- Called when GTK filter clicked .
- Event handler for archived topics
- This method is called by the main thread .
- create a mqtt client
- Archive the last payload .
- Invoked when a connection is received .
- Called when the client is disconnected .
mqtt-explorer Key Features
mqtt-explorer Examples and Code Snippets
Community Discussions
Trending Discussions on mqtt-explorer
QUESTION
I would like to connect a test MQTT-Client to my Node.js application as a MQTT-Broker. I am using the aedes library from moscajs
My MQTT-Client is the tool "MQTT-Explorer" and here is my Node.js application:
...ANSWER
Answered 2022-Mar-01 at 20:20MQTT Explorer is built using Node.js and the MQTT library MQTT.js. As per this issue:
Node.js requires the IP address to be in the subjectAltNames for the cert and not in the CN. Maybe MQTT.fx isn't requiring that, but it should.
and:
If your server's certificate says CN=localhost in the Subject field, connect using localhost and not 127.0.0.1 and it should work. If it says CN=127.0.0.1, you have to make a new one because Node.js won't validate the IP address unless it's in the SAN extension. There is a way to work around it in code (I think it's an option called checkServerIdentity), but I would prefer to fix my certificate if I had this problem.
A rationale for the approach taken in Node is set out in this answer which includes the following quote from RFC2818: HTTP Over TLS :
In some cases, the URI is specified as an IP address rather than a hostname. In this case, the iPAddress subjectAltName must be present in the certificate and must exactly match the IP in the URI.
As you are using MQTT over TLS (as opposed to HTTP Over TLS) you could argue that the above does not apply but, given that the main use of the TLS library is for HTTP traffic, it makes sense that it confirms to the RFC by default.
You have a few options including:
- Use a hostname (e.g.
localhost
) rather then an IP when creating the certificate/connecting. - Add the IP as a subjectAltName
- Modify the library to use a noop
checkServerIdentity
(see this answer). - Use another application for testing (not really recommended as some applications will work and others will not). The issue quoted above mentions that MQTT.fx works.
QUESTION
I am trying to connect to an Azure IoT Hub directly using MQTT using this method:
I am using MQTT explorer for windows: https://mqtt-explorer.com/ I enter the following details. My ioTHub is called IoTHub and my device is called device, so as per the documentation:
Protocol: mqtt:// Host: iothub.azure-devices.net/?api-version=2018-06-3430 Port: 8883 Validate Cert: Off Encryption: Off Username: iothub.azure-devices.net/device/?api-version=2018-06-30 Password: SharedAccessSignature sr=iothub.azure-devices.net&sig=XXXXXXXXXXXXXXXXXXXredactedXXXXXXXXXXXXXXXXXXXX&se=1642603375&skn=iothubowner
No ports are blocked from my location. The connection fails and says disconnected from server. If I try with TLS encryption it says not authorised.
How can I access the IoTHub using MQTT?
...ANSWER
Answered 2022-Jan-21 at 07:29You're on the right track! One small detail is missing, in the docs
Quote:
For the ClientId field, use the deviceId.
The client ID can be set using the advanced settings, as seen in the two screenshots below:
As for TLS Encryption, it's required. Switch it on and you should be able to connect.
Edit:
As you mentioned in the comment, the connection string was also wrong. You need the Shared Access Signature for a device. An easy way of generating one is by using the az cli
. When you run the command below, you provide the connection string of your device (you can get it from the portal) and it will create the Shared Access Signature for you.
az iot hub generate-sas-token --connection-string "HostName=iot-Hub.azure-devices.net;DeviceId=deviceId;SharedAccessKey=foo"
QUESTION
I am a new .NET core user trying to learn how to connect a managed client with TLS on MacOS Catalina, using MQTTnet.
I am trying to connect from ASP.NET Core 3 Background Service to a Mosquitto broker. Using MqttExplorer I am able to connect successfully to the server over TLS, with username, password and a server certificate (CA) file. So, I know the Mosquitto Broker is configured correctly.
However, I am unable to achieve this with MQTTnet.
...ANSWER
Answered 2020-Oct-03 at 22:13Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mqtt-explorer
PyGTK https://python-gtk-3-tutorial.readthedocs.io/en/latest/
Eclipse Paho MQTT client API https://www.eclipse.org/paho/clients/python/docs/
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page