Questions tagged [hivemq]

HiveMQ is an enterprise MQTT broker for M2M and IoT. Built for scalability, easy management, and security, it seamlessly integrates with existing systems. With HiveMQ, organizations can confidently manage their M2M and IoT communications.

HiveMQ is a MQTT broker designed for enterprises in the age of Machine-to-Machine communication (M2M) and the Internet of Things (IoT).

The latest LTS version is HiveMQ 4.9.5, released on 2023-03-07. Homepage at http://www.hivemq.com/.

163 questions
1
vote
0 answers

Issue with MQTT client connecting to a clustered (3 nodes) NatsIO server

NATS Server error: node2-c1_1 | [1] 2021/12/13 15:35:15.464884 [INF] Creating MQTT streams/consumers with replicas 1 for account "ADKPM577BVYF7QXUNN6YOFEO4CJUQOPTD3WDEIFNXLW264566UABY3QG" node2-c1_1 | [1] 2021/12/13 15:35:19.470607 [WRN]…
steven.04
  • 11
  • 1
1
vote
0 answers

Not able to publish: MQTT client is not connected in java

When i run my code it's working fine but after some hours it stop working and show this error Not able to publish: MQTT client is not connected public Mqtt5AsyncClient connect(String host, int port) { Mqtt5AsyncClient client =…
NewbieCoder
  • 117
  • 1
  • 1
  • 6
1
vote
0 answers

Native ESP32 MQTT library Secure connection error

Hello everyone. I want to setup an MQTT client on my esp. I was able to do it without SSL, and it is working fine with cloud mqtt providers if it is not secure. I used it with https://www.emqx.com/en/cloud and it was good. Now i want to implement…
Dr.Random
  • 430
  • 3
  • 16
1
vote
1 answer

Hivemq java client on reconnect auth username and password not going it is trying to reconnect with username and password

When wifi off and on then on reconnect it is not sending username and password in auth which give UN_AUTHORIZED error from broker. I'm using Mosquitto with mosquitto-go-auth. val mqttClient = MqttClient.builder().useMqttVersion5() …
AR Soft
  • 51
  • 2
  • 6
1
vote
1 answer

How to convert Mqtt5 payload back into JSON

How do I convert Mqtt5Publish.getPayloadAsBytes() into a properly formatted JSON string? i.e. Get a message published like this: '{"SampleData0": "1.2.3", "SampleData1": "4.5.6"}' Back into the same format when the subscriber obtains it. I'm using…
Guilty
  • 464
  • 4
  • 13
1
vote
1 answer

MQTT 3.1.1 broker QoS=1 ("at least once") message redelivery

I am trying to find out the reality about MQTT 3.1.1 message re-delivery for messages received by a MQTT subscriber with "at least once" (QoS 1) configuration: Do MQTT brokers re-deliver un-acknowledged "QoS 1" messages from subscribers? How much…
Thomas Jäckle
  • 1,123
  • 2
  • 7
  • 21
1
vote
2 answers

Error Connecting to Mosquitto Broker via Websockets

Using the Client on HIVEMQ when I try to connect my mqtt server, I get the following error: Firefox can’t establish a connection to the server at ws://xxx.com:8083/mqtt. Connect failed: AMQJS0007E Socket error:undefined. I'm using the following…
ASH
  • 89
  • 1
  • 11
1
vote
0 answers

How can I cleanup the HiveMQ message cache dir?

I found those two folders are growing up pretty fast, and it seems there is no way to clean it up. /opt/hivemq/data/persistence/publish_payload_store /opt/hivemq/data/persistence/retained_messages I set message (or conn) with following…
kswen
  • 11
  • 1
1
vote
1 answer

Kafka Cluster ID for HiveMQ Extension

I setup a 3 node Kafka and Zookeeper cluster on 1 machine. Now I need the cluster ID for my HiveMQ Extension. When the Kafka gets started, the logs provide the cluster id of a long string. I used that id, but its really not working.
Aleena Rehman
  • 161
  • 1
  • 9
1
vote
1 answer

How to connect and publish Java Hive MQTTClient with flespi?

flespi.io uses an auth token as a username, you can set the token as password also, if you want. How to connect to flespi using HiveMQ Java implementation? Mqtt3AsyncClient client = MqttClient.builder() .useMqttVersion3() …
Michi
  • 487
  • 5
  • 20
1
vote
2 answers

How to properly use TLS 1.3 cipher suites in HiveMQ? (Getting a SSL exception: closing inbound before receiving peer's close_notify)

I want to use TLS 1.3 for my secure communication with HiveMQ. I've configured the HiveMQ community edition server config.xml file to specify to use TLS 1.3 cipher suites and I pointed it to the keystore containing a key pair for a 256-bit Elliptic…
Chigozie A.
  • 335
  • 4
  • 16
1
vote
1 answer

How to properly connect with authentication in HiveMQ?

I'm trying to connect a client to a server with simple authentication using HiveMQ. On HiveMQ Client I created a client and used the connectWith() to specify that I want to connect with simple authentication. When I inputted a username and password…
Chigozie A.
  • 335
  • 4
  • 16
1
vote
1 answer

How to get the name of a client in HiveMQ Client (MQTT)?

Is there anyway to assign a name to a client using some setter method and retrieve it with another method? So far I've been just making some methods to print statements and conversions so I've been passing in the name of clients manually as a string…
Chigozie A.
  • 335
  • 4
  • 16
1
vote
2 answers

How to fix undefined MqttChannelInitializer constructor in HiveMQ Client?

I was using HiveMQ Client version 1.0.1 but I decided to update to the recently released version 1.1. I completely started from scratch and imported the project as a Gradle project and tried to build. The build work only after ignoring a few failed…
Chigozie A.
  • 335
  • 4
  • 16
1
vote
1 answer

How to add HiveMQ Client as a dependency to HiveMQ Community Edition using Gradle?

I'd like to combine HiveMQ Client and HiveMQ Community Edition which is the implementation for the broker into one project. I tried adding the HiveMQ client as a dependency to the build.gradle file in the Hive MQ Community Edition (broker). It was…
Chigozie A.
  • 335
  • 4
  • 16
1 2
3
10 11