Getting started with the HiveMQ Client Library

The HiveMQ MQTT Client Library is an MQTT 5.0 and 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support.

All the necessary information to get started can be found on the project page.


Can you make a comparision with Paho Mqtt Client Library?

Hey there,

I am not quite sure what kind of comparison you are looking for.
The major differences between the HiveMQ MQTT Client Library and the Eclipse Paho Java Client are:

  • Full MQTT 5 Support
  • API flavors:
    • Reactive, Async and Blocking
    • Flexible switching
    • Consistent and clearly separated
  • Backpressure support:
    • QoS 1 and 2
    • QoS 0 (dropping incoming messages if necessary)
  • Automatic and configurable thread management

You will find all the details on the project page, provided in the initial post.
Feel free to open a new thread in case you come across any specific questions.

Kind regards,

Hello @fraschbi

Can i use with minSdkVersion 16 ? i’m trying, but i receive this message:
AGPBI: {"kind":"error","text":"Static interface methods are only supported starting with Android N (--min-api 24): void com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishFlowableAckLink$LinkCancellable.lambda$static$0()","sources":[{}],"tool":"D8"}

Does customize any package to avoid min api restriction or use only implementation of the Rx related of my needs?

Hi @solano

The HiveMQ MQTT Client can be used on Android 4.4 (API level 19) and higher.
As Android still lacks proper support for Java 8 APIs, you have to use the Android RetroFix gradle plugin if you support Android API levels 19-24.
Please refer to the documentation ( on how to setup your Android build scripts.
So to answer your question: API level 16 is not supported due to Android limitations.

Kind regards,

1 Like

Hello, how can i use SSL Auto Signed Certificate on hivemq android client? im try to set in properties, but i don`t find any reference. I’m try to understand from source code.