From 2e695449cae25b6439c3d50ec78e4f67ac6a2f87 Mon Sep 17 00:00:00 2001 From: Davide Pianca Date: Wed, 11 Mar 2020 12:21:44 +0100 Subject: [PATCH] Bump version to 0.1.2 --- .idea/artifacts/KMQTT_jvm_0_1_2.xml | 8 ++++++++ Readme.md | 19 +++++++++++++++++-- build.gradle.kts | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .idea/artifacts/KMQTT_jvm_0_1_2.xml diff --git a/.idea/artifacts/KMQTT_jvm_0_1_2.xml b/.idea/artifacts/KMQTT_jvm_0_1_2.xml new file mode 100644 index 0000000..476b13c --- /dev/null +++ b/.idea/artifacts/KMQTT_jvm_0_1_2.xml @@ -0,0 +1,8 @@ + + + C:\Users\39340\IdeaProjects\KMQTT\build\libs + + + + + \ No newline at end of file diff --git a/Readme.md b/Readme.md index 074fae1..3600efb 100644 --- a/Readme.md +++ b/Readme.md @@ -37,7 +37,7 @@ repositories { maven { url "https://jitpack.io" } } dependencies { - implementation 'com.github.davidepianca98:KMQTT:0.1.1' + implementation 'com.github.davidepianca98:KMQTT:0.1.2' } ``` @@ -55,7 +55,7 @@ kotlin { sourceSets { commonMain { dependencies { - implementation 'com.github.davidepianca98:KMQTT:0.1.1' + implementation 'com.github.davidepianca98:KMQTT:0.1.2' } } } @@ -109,3 +109,18 @@ fun main() { broker.listen() } ``` + +#### Internal publish code example +```kotlin +fun main() { + val broker = Broker() + broker.publish( + retain = false, + topicName = "test/", + qos = Qos.AT_MOST_ONCE, + properties = MQTTProperties(), + "testPayload".toByteArray().toUByteArray() + ) + broker.listen() +} +``` diff --git a/build.gradle.kts b/build.gradle.kts index 425ce3b..9ef4221 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { } group = "com.github.davidepianca98" -version = "0.1.1" +version = "0.1.2" repositories { mavenCentral()