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()