meshtastic 0.0.31 → 0.0.33

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: 5cc77b2e88470456485851d5721eeffe6e236272135f59e8e9f9ff3cba390cb6
4
+ data.tar.gz: 7404c0e767b75ba26c36f84d5ed0b3c66a2f40c14faf7f5e0d3e0e96cef506a9
5
5
  SHA512:
6
- metadata.gz: 2d9d04eee129e4ae7079c4c4797ec258748424beec4f144c9a7a722f537c9e9eed4d1c2ac11c26df73cc51be7ca1548e28982cac59494507a18be51fb2bf270c
7
- data.tar.gz: 2786119cf83aac960dc378c8c86f776254057e6e2968436f818fe568fa91495e3df5824003868904d6442a2a5573d41c1a9ee70d753f61eebb665f6bd476c8f0
6
+ metadata.gz: 1c2fe7fd8d6b2dd057a12491f62d0fdaec47fe64b90a1237e4880a035e6e8608a3ac78f8f0910b8b9a8250133a4404dddf9b8515b1f77515c6c8e61fcb2a1b51
7
+ data.tar.gz: a3330f2c01d5bddeba52d5c781c57b3ff0667712d8df94733ec87795abf5b23d27831b2717d10071214460f96f1a39bbdee162a5d39d5b64c271fb68bb7c3d2f
@@ -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
+ :TEXT_MESSAGE_COMPRESSED_APP
171
+ # Unsure if this is the correct protobuf object
172
+ # for TEXT_MESSAGE_COMPRESSED_APP
173
+ pb_obj = Meshtastic::Compressed.decode(payload)
170
174
  when :STORE_FORWARD_APP
171
175
  pb_obj = Meshtastic::StoreAndForward.decode(payload)
172
176
  when :TEXT_MESSAGE_APP
177
+ # Unsure if this is the correct protobuf object
173
178
  pb_obj = Meshtastic::MqttClientProxyMessage.decode(payload)
174
- when :TEXT_MESSAGE_COMPRESSED_APP
175
- 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.33'
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.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.