meshtastic 0.0.31 → 0.0.32

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c29f11f50b242a0557b383c1fb5d0302b65369875a3b7bf6850e2b4d18d37024
4
- data.tar.gz: 8d6592149ce03f4dec19924c2c23fcae0d15a80acd44d565f9fec9c3f6565e88
3
+ metadata.gz: 1a810ada159c4d2bed444d0ef5e123a2959caec545ade37307ad621b885cb92f
4
+ data.tar.gz: 00c1c0e5aceb9a75c009af4aedd730918f6d5a8c6acca8fc1df589a357df4510
5
5
  SHA512:
6
- metadata.gz: 2d9d04eee129e4ae7079c4c4797ec258748424beec4f144c9a7a722f537c9e9eed4d1c2ac11c26df73cc51be7ca1548e28982cac59494507a18be51fb2bf270c
7
- data.tar.gz: 2786119cf83aac960dc378c8c86f776254057e6e2968436f818fe568fa91495e3df5824003868904d6442a2a5573d41c1a9ee70d753f61eebb665f6bd476c8f0
6
+ metadata.gz: 9c01f0484f9b9da94d50c7d2f964eeffb9cb374e9993955337502081bcefab8af2a85a692fcb58ed6a2a2981528effd8189faf9f105eda3cb81b60704a60f492
7
+ data.tar.gz: 940d4174955651ede2eb5938314076a0702ee4ff7eb2c2b56eae491704d7d691ece5c41bbb248cac35ff385d6df48029af3fa8d556c66e11bf09d38db0cb8698
@@ -148,15 +148,16 @@ module Meshtastic
148
148
  when :NEIGHBORINFO_APP
149
149
  pb_obj = Meshtastic::NeighborInfo.decode(payload)
150
150
  when :NODEINFO_APP
151
- pb_obj = Meshtastic::NodeInfo.decode(payload)
151
+ pb_obj = Meshtastic::User.decode(payload)
152
152
  when :PAXCOUNTER_APP
153
153
  pb_obj = Meshtastic::Paxcount.decode(payload)
154
154
  when :POSITION_APP
155
155
  pb_obj = Meshtastic::Position.decode(payload)
156
156
  # when :PRIVATE_APP
157
157
  # pb_obj = Meshtastic::Private.decode(payload)
158
- # when :RANGE_TEST_APP
159
- # pb_obj = Meshtastic::RangeTest.decode(payload)
158
+ when :RANGE_TEST_APP
159
+ # Unsure if this is the correct protobuf object
160
+ pb_obj = Meshtastic::FromRadio.decode(payload)
160
161
  when :REMOTE_HARDWARE_APP
161
162
  pb_obj = Meshtastic::HardwareMessage.decode(payload)
162
163
  # when :REPLY_APP
@@ -165,22 +166,20 @@ module Meshtastic
165
166
  pb_obj = Meshtastic::Routing.decode(payload)
166
167
  when :SERIAL_APP
167
168
  pb_obj = Meshtastic::SerialConnectionStatus.decode(payload)
168
- # when :SIMULATOR_APP
169
- # pb_obj = Meshtastic::Simulator.decode(payload)
169
+ when :SIMULATOR_APP
170
+ pb_obj = Meshtastic::Compressed.decode(payload)
170
171
  when :STORE_FORWARD_APP
171
172
  pb_obj = Meshtastic::StoreAndForward.decode(payload)
172
173
  when :TEXT_MESSAGE_APP
174
+ # Unsure if this is the correct protobuf object
173
175
  pb_obj = Meshtastic::MqttClientProxyMessage.decode(payload)
174
176
  when :TEXT_MESSAGE_COMPRESSED_APP
177
+ # Unsure if this is the correct protobuf object
175
178
  pb_obj = Meshtastic::Compressed.decode(payload)
176
179
  when :TELEMETRY_APP
177
180
  pb_obj = Meshtastic::Telemetry.decode(payload)
178
181
  when :TRACEROUTE_APP
179
182
  pb_obj = Meshtastic::RouteDiscovery.decode(payload)
180
- # message[:decoded][:payload] = pb_obj.to_h
181
- # pb_obj.to_h[:route].each_with_index do |route, index|
182
- # message[:decoded][:payload][:route][index] = route.to_s(16)
183
- # end
184
183
  # when :UNKNOWN_APP
185
184
  # pb_obj = Meshtastic.Unknown.decode(payload)
186
185
  when :WAYPOINT_APP
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.31'
4
+ VERSION = '0.0.32'
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.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.