meshtastic 0.0.18 → 0.0.19
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/README.md +4 -1
- data/lib/meshtastic/mqtt.rb +4 -2
- data/lib/meshtastic/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: c86344c9da4b5ee0b8aa0ba59237e6117fd07ff7113cc41516ee9336542b2e9b
|
|
4
|
+
data.tar.gz: be245b738bddeadd9d46ccc62cc751de3fc4df3e802539498d1cefdcf3cc9221
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94bfeb6caf399f255accbbf4507b2e6156bb4311c87c274411f9cceb6843126e48acfe15c874a603d9e2751696f177a8574ccac18a62d2c1e2e738b8b819e050
|
|
7
|
+
data.tar.gz: 80e35c0a6871b761a49bda7bb344e82a6d8af1347b8c0cffada6765aa19c9fcba6d7cb4a4af55de43492150d4cb3670147c0b0db8a4d8878662a75d14f8c572c
|
data/README.md
CHANGED
|
@@ -30,7 +30,10 @@ At the moment the only module available is `Meshtastic::MQTT`. To view MQTT mes
|
|
|
30
30
|
require 'meshtastic'
|
|
31
31
|
Meshtastic::MQTT.help
|
|
32
32
|
mqtt_obj = Meshastic::MQTT.connect
|
|
33
|
-
Meshtastic::MQTT.subscribe(
|
|
33
|
+
Meshtastic::MQTT.subscribe(
|
|
34
|
+
mqtt_obj: mqtt_obj,
|
|
35
|
+
filter: 'NODEINFO_APP, LongFast'
|
|
36
|
+
)
|
|
34
37
|
```
|
|
35
38
|
|
|
36
39
|
## Contributing
|
data/lib/meshtastic/mqtt.rb
CHANGED
|
@@ -50,7 +50,7 @@ module Meshtastic
|
|
|
50
50
|
# psk: 'optional - channel pre-shared key (default: AQ==)',
|
|
51
51
|
# qos: 'optional - quality of service (default: 0)',
|
|
52
52
|
# json: 'optional - JSON output (default: false)',
|
|
53
|
-
# filter: 'optional - comma-delimited string(s) to
|
|
53
|
+
# filter: 'optional - comma-delimited string(s) to filter on in payload (default: nil)'
|
|
54
54
|
# )
|
|
55
55
|
|
|
56
56
|
public_class_method def self.subscribe(opts = {})
|
|
@@ -216,7 +216,9 @@ module Meshtastic
|
|
|
216
216
|
region: 'optional - region (default: US)',
|
|
217
217
|
channel: 'optional - channel name (default: LongFast)',
|
|
218
218
|
psk: 'optional - channel pre-shared key (default: AQ==)',
|
|
219
|
-
qos: 'optional - quality of service (default: 0)'
|
|
219
|
+
qos: 'optional - quality of service (default: 0)',
|
|
220
|
+
json: 'optional - JSON output (default: false)',
|
|
221
|
+
filter: 'optional - comma-delimited string(s) to filter on in payload (default: nil)'
|
|
220
222
|
)
|
|
221
223
|
|
|
222
224
|
mqtt_obj = #{self}.disconnect(
|
data/lib/meshtastic/version.rb
CHANGED