meshtastic 0.0.24 → 0.0.26
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/Gemfile +1 -0
- data/README.md +4 -4
- data/lib/meshtastic/mqtt.rb +1 -1
- data/lib/meshtastic/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bce6c9ca7e0fe81b75699db5a4a0bf06be425be39abb5af45bd3c1ca0b44a35f
|
4
|
+
data.tar.gz: 930eefb7737a88ffc9ca7af6eba203a840e08c848ab51cc5fa418599ed6ed7ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ef740faefff05d22f2b8f5bafd64c2229c59310a1f1752ec1e78ddd1411ac4e561d4957ff7fb28468c9b23bed3699f8c8279117d9273a3c2b2c077ea227e755
|
7
|
+
data.tar.gz: f1bdae37062b0c71bcdf93b4d2d1684a4ef72b4143c947cb9757dc5bcf6929a0dc568b4509a754e8bef94ada1f527d7b21348fa6d573b2e3df1f64faee2fe03b
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -24,7 +24,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
At the moment the only module available is `Meshtastic::MQTT`. To view MQTT messages,
|
27
|
+
At the moment the only module available is `Meshtastic::MQTT`. To view MQTT messages, and filter for all messages containing `_APP` _and_ `LongFast` strings, use the following code:
|
28
28
|
|
29
29
|
```ruby
|
30
30
|
require 'meshtastic'
|
@@ -32,17 +32,17 @@ Meshtastic::MQTT.help
|
|
32
32
|
mqtt_obj = Meshastic::MQTT.connect
|
33
33
|
Meshtastic::MQTT.subscribe(
|
34
34
|
mqtt_obj: mqtt_obj,
|
35
|
-
filter: '
|
35
|
+
filter: '_APP, LongFast'
|
36
36
|
)
|
37
37
|
```
|
38
38
|
|
39
|
-
This code will
|
39
|
+
This code will dump the contents of every message:
|
40
40
|
|
41
41
|
```ruby
|
42
42
|
require 'meshtastic'
|
43
43
|
mqtt_obj = Meshastic::MQTT.connect
|
44
44
|
Meshtastic::MQTT.subscribe(mqtt_obj: mqtt_obj) do |message|
|
45
|
-
puts message
|
45
|
+
puts message.inspect
|
46
46
|
end
|
47
47
|
```
|
48
48
|
|
data/lib/meshtastic/mqtt.rb
CHANGED
data/lib/meshtastic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meshtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - '='
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: 1.11.3.9
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: yard
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.9.36
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.9.36
|
181
195
|
description: https://github.com/0dayinc/meshtastic/README.md
|
182
196
|
email:
|
183
197
|
- support@0dayinc.com
|