# Getting started with the HiveMQ Client Library

**URL:** <https://community.hivemq.com/t/getting-started-with-the-hivemq-client-library/24>\
**Category:** HiveMQ Client Library\
**Created:** [April 16, 2019, 9:54am UTC](https://community.hivemq.com/t/getting-started-with-the-hivemq-client-library/24 "2019-04-16T09:54:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hivemq-support](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/hivemq-support/32/357_2.png) [@hivemq-support](https://community.hivemq.com/u/hivemq-support)\
**Post date:** [April 16, 2019, 9:54am UTC](https://community.hivemq.com/t/getting-started-with-the-hivemq-client-library/24/1 "2019-04-16T09:54:11Z")

</div>

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](https://github.com/hivemq/hivemq-mqtt-client).

---

<div class="post-metadata">

**Author:** ![guzelcihad](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@guzelcihad](https://community.hivemq.com/u/guzelcihad)\
**Post date:** [April 17, 2019, 8:39pm UTC](https://community.hivemq.com/t/getting-started-with-the-hivemq-client-library/24/2 "2019-04-17T20:39:03Z")

</div>

Can you make a comparision with Paho Mqtt Client Library?

---

<div class="post-metadata">

**Author:** ![hivemq-support](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/hivemq-support/32/357_2.png) [@hivemq-support](https://community.hivemq.com/u/hivemq-support)\
**Post date:** [April 18, 2019, 8:39am UTC](https://community.hivemq.com/t/getting-started-with-the-hivemq-client-library/24/3 "2019-04-18T08:39:06Z")

</div>

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,  
Florian

---

<div class="post-metadata">

**Author:** ![solano](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/solano/32/51_2.png) [@solano](https://community.hivemq.com/u/solano)\
**Post date:** [February 13, 2020, 9:51pm UTC](https://community.hivemq.com/t/getting-started-with-the-hivemq-client-library/24/4 "2020-02-13T21:51:12Z")

</div>

Hello @hivemq-support

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?

---

<div class="post-metadata">

**Author:** ![SgtSilvio](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/sgtsilvio/32/26_2.png) [@SgtSilvio](https://community.hivemq.com/u/SgtSilvio)\
**Post date:** [February 14, 2020, 7:37am UTC](https://community.hivemq.com/t/getting-started-with-the-hivemq-client-library/24/5 "2020-02-14T07:37:20Z")

</div>

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 ([https://hivemq.github.io/hivemq-mqtt-client/docs/installation/android/](https://hivemq.github.io/hivemq-mqtt-client/docs/installation/android/)) 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,  
Silvio

---

<div class="post-metadata">

**Author:** ![solano](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/solano/32/51_2.png) [@solano](https://community.hivemq.com/u/solano)\
**Post date:** [March 17, 2020, 9:11pm UTC](https://community.hivemq.com/t/getting-started-with-the-hivemq-client-library/24/6 "2020-03-17T21:11:19Z")

</div>

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.
