Registry / messaging / mqtt-client

mqtt-client

JSON →
library1.12javamavenunverified

Provides an ASL 2.0 licensed API to MQTT with automatic reconnection and session restoration, supporting blocking, futures, and callback APIs.

<dependency> <groupId>org.fusesource.mqtt-client</groupId> <artifactId>mqtt-client</artifactId> <version>1.12</version> </dependency>
INSTALL
IMPORT
SIG · MQTT-CLIENT
M
mqtt-client
messagingjavav1.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MQTT
org.fusesource.mqtt.client.MQTT

Connects to an MQTT broker and publishes a message.

import org.fusesource.mqtt.client.MQTT; import org.fusesource.mqtt.client.QoS; public class Example { public static void main(String[] args) throws Exception { MQTT mqtt = new MQTT(); mqtt.setHost("tcp://localhost:1883"); mqtt.connect(); mqtt.publish("topic", "message".getBytes(), QoS.AT_LEAST_ONCE, false); } }
Debug
Known issues
gotchaThe library is no longer actively maintained; consider using Eclipse Paho instead.
fix
Migrate to org.eclipse.paho:org.eclipse.paho.client.mqttv3.
affects: >=1.0
Upgrade
Version history
1.12latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
mqtt-client — mvn dependency:get mqtt-client · libregistry