qubitro-mqtt 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/NEWS.md +5 -0
- data/README.md +28 -3
- data/lib/qubitro-mqtt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 024a537aa92a228c64777f0af1b870b0c049c4067784cf20c6b1f5b8bc2b1aa7
|
4
|
+
data.tar.gz: 877f25bb397aef7321644f9857a7b5d0f009e66982bd980b2cebef679db6b60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d942b91baee8a5db425b1206074494943b209f2fc36700c5eaf0e9536e5552333981c57e1df38fafce73334b83f25a4383b261afd8cf68cda9c3238c1eda1b
|
7
|
+
data.tar.gz: b3e4f3e3e198a4ee3b8297d8d99d78c9fa172b0a53d2ab728e0d452721f886036a63eb9fb444d1b9e0155d1b8f06aa7e66233c6bb9869e3c24e6d9a12d9159f4
|
data/NEWS.md
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
|
3
|
+
## Qubitro Ruby MQTT Client Library
|
4
|
+
|
5
|
+
Ruby client library that implements the MQTT protocol, a lightweight protocol for publish/subscribe messaging.
|
6
|
+
|
7
|
+
[](https://github.com/qubitro/mqtt-client-ruby/actions) [](https://badge.fury.io/rb/qubitro-mqtt)
|
8
|
+
|
9
|
+
### Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'qubitro-mqtt'
|
13
|
+
|
14
|
+
MQTT::Client.connect(
|
15
|
+
:host => host,
|
16
|
+
:port => 1883,
|
17
|
+
:client_id => deviceID,
|
18
|
+
:username => deviceID,
|
19
|
+
:password => deviceToken,
|
20
|
+
:ack_timeout => 15,
|
21
|
+
:will_topic => deviceID,
|
22
|
+
:will_payload => payload,
|
23
|
+
) do |client|
|
24
|
+
puts 'connected'
|
25
|
+
end
|
26
|
+
```
|
27
|
+
|
28
|
+
[Visit Qubitro documentation](https://docs.qubitro.com/client-guides/connect-device/raspberry-pi/ruby)
|
29
|
+
|
5
30
|
|
data/lib/qubitro-mqtt/version.rb
CHANGED