meshtastic 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b24b299642029b92a222cd725fc4fcc7cc16f65456e9e7ed14a19ba961370126
4
- data.tar.gz: f311791bced3690a4e7072cd0c71c0d7521eec9a14c93425a70a8d46f6a1e198
3
+ metadata.gz: 9aaeb1f3c75edb7a08e4f090d34ebbdae6d2bee25ff9b6cde3191967b425412d
4
+ data.tar.gz: 8ea1b16b5e6e50cb5557f3bf188c6ee1ae76dd98a9c8f88ca46b7913eb42790b
5
5
  SHA512:
6
- metadata.gz: 356940728257de2c144fdd3614e20b0ef7e03fba208d2e97b13822a8bf1e732bb2e338da814d06303147c756b9e60f34068723e43f774070136e123bb8dea955
7
- data.tar.gz: eb0bd43a244d7bad3dd49ee52ecc4f07a4ecbd079781065a0fd64723e4aeb60bb1e8292f2402558c7d920ba373f0cecb5064c72dd750078668049604073162cd
6
+ metadata.gz: 47fae55292b03c5993c4ecd1123e337fd7fc205c9aca093a4762ce1208d7e3c8ae33f950d8c036ea3aaf2396043430f2779988d28fd625bae983c5fe7221c432
7
+ data.tar.gz: 259fad6dbe769bb3d427ab6e5583f85fca1db5d6ebd14d0637f4edc8344cb09f8f34e31d592c72101e0a381faa270942dd2722bd2ccb924a28e961b5bc57e066
data/Gemfile CHANGED
@@ -23,3 +23,4 @@ gem 'rubocop', '1.63.4'
23
23
  gem 'rubocop-rake', '0.6.0'
24
24
  gem 'rubocop-rspec', '2.29.1'
25
25
  gem 'rvm', '1.11.3.9'
26
+ gem 'yard', '0.9.36'
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, run the following:
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: 'NODEINFO_APP, LongFast'
35
+ filter: '_APP, LongFast'
36
36
  )
37
37
  ```
38
38
 
39
- This code will print the `from` value of each message received:
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[:from]
45
+ puts message.inspect
46
46
  end
47
47
  ```
48
48
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.24'
4
+ VERSION = '0.0.25'
5
5
  end
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.24
4
+ version: 0.0.25
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