meshtastic 0.0.19 → 0.0.20

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: c86344c9da4b5ee0b8aa0ba59237e6117fd07ff7113cc41516ee9336542b2e9b
4
- data.tar.gz: be245b738bddeadd9d46ccc62cc751de3fc4df3e802539498d1cefdcf3cc9221
3
+ metadata.gz: 118b74d5c53f38d6fcf05335c4fb5fb70a0caa6d8b46938a3d74769553a0bae8
4
+ data.tar.gz: 155ea6cecde9a3d2adade6cbe033598c074cfe45c71ad11122fde2e3427602ea
5
5
  SHA512:
6
- metadata.gz: 94bfeb6caf399f255accbbf4507b2e6156bb4311c87c274411f9cceb6843126e48acfe15c874a603d9e2751696f177a8574ccac18a62d2c1e2e738b8b819e050
7
- data.tar.gz: 80e35c0a6871b761a49bda7bb344e82a6d8af1347b8c0cffada6765aa19c9fcba6d7cb4a4af55de43492150d4cb3670147c0b0db8a4d8878662a75d14f8c572c
6
+ metadata.gz: 57cdde07d35c227e8135df98e225d62d0bf1c789db487356ea17d262a2d658d2f4139d92edfce9f1b8d66c3d048712c78be0d9ef29bf09ade051237d294c861c
7
+ data.tar.gz: 031e774028e1823a2624f7827565edeb93f2e36bfc58e005c3d8ebb8c6d9df869d609f2cd9eb9e6b326aeaf70f31d8c3ddc0c71f11949e7c17df19cc19aa5719
@@ -64,7 +64,6 @@ module Meshtastic
64
64
 
65
65
  # TODO: Find JSON URI for this
66
66
  root_topic = "msh/#{region}/2/json" if json
67
- # root_topic = "msh/#{region}/2/e" unless json
68
67
  root_topic = "msh/#{region}/2/c" unless json
69
68
  mqtt_obj.subscribe("#{root_topic}/#{channel}/#", qos)
70
69
 
@@ -130,7 +129,7 @@ module Meshtastic
130
129
  if disp
131
130
  puts "\n"
132
131
  puts '-' * 80
133
- puts "\n*** DEBUGGING ***"
132
+ puts "*** DEBUGGING ***"
134
133
  puts "Payload:\n#{payload}"
135
134
  # puts "\nMap Report: #{map_report.inspect}"
136
135
  puts "\nRaw Packet: #{raw_packet.inspect}"
@@ -143,7 +142,7 @@ module Meshtastic
143
142
  rescue Google::Protobuf::ParseError
144
143
  puts "\n"
145
144
  puts '-' * 80
146
- puts "\n*** DEBUGGING ***"
145
+ puts "*** DEBUGGING ***"
147
146
  puts "Payload:\n#{payload}"
148
147
  # puts "\nMap Report: #{map_report.inspect}"
149
148
  puts "\nRaw Packet: #{raw_packet.inspect}"
@@ -221,6 +220,11 @@ module Meshtastic
221
220
  filter: 'optional - comma-delimited string(s) to filter on in payload (default: nil)'
222
221
  )
223
222
 
223
+ #{self}.gps_search(
224
+ lat: 'required - latitude float (e.g. 37.7749)',
225
+ lon: 'required - longitude float (e.g. -122.4194)',
226
+ )
227
+
224
228
  mqtt_obj = #{self}.disconnect(
225
229
  mqtt_obj: 'required - mqtt_obj object returned from #connect method'
226
230
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.19'
4
+ VERSION = '0.0.20'
5
5
  end
data/lib/meshtastic.rb CHANGED
@@ -3,9 +3,6 @@
3
3
  # Plugin used to interact with Meshtastic nodes
4
4
  module Meshtastic
5
5
  # Protocol Buffers for Meshtastic
6
- # protobuf Modules commented out as a result of the following error:
7
- # undefined method `proto3_optional' for an instance of
8
- # Google::Protobuf::Internal::MessageBuilderContext (NoMethodError)
9
6
  require 'meshtastic/admin_pb'
10
7
  require 'nanopb_pb'
11
8
  require 'meshtastic/apponly_pb'
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.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.