meshtastic 0.0.26 → 0.0.27

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: bce6c9ca7e0fe81b75699db5a4a0bf06be425be39abb5af45bd3c1ca0b44a35f
4
- data.tar.gz: 930eefb7737a88ffc9ca7af6eba203a840e08c848ab51cc5fa418599ed6ed7ac
3
+ metadata.gz: 898ebccfa6f9e1dfaf7a8dceb7e96a8809c2dfb264c292e7615415296d09e3a9
4
+ data.tar.gz: 78b2aed960cfb158ec4e5fa18d4473030256c9bbde47ad279cefdba757165c6b
5
5
  SHA512:
6
- metadata.gz: 3ef740faefff05d22f2b8f5bafd64c2229c59310a1f1752ec1e78ddd1411ac4e561d4957ff7fb28468c9b23bed3699f8c8279117d9273a3c2b2c077ea227e755
7
- data.tar.gz: f1bdae37062b0c71bcdf93b4d2d1684a4ef72b4143c947cb9757dc5bcf6929a0dc568b4509a754e8bef94ada1f527d7b21348fa6d573b2e3df1f64faee2fe03b
6
+ metadata.gz: 14c3e366e953ba5188f53777072542c987d927c682aec73d098e3b5e89b19a6fb659df9561e56fb1d64b107acd105a677416e519c8f5011777a2881f67f81c70
7
+ data.tar.gz: 3b33c81aa2da8352212faf364e41f9abf5ab3f19f14a02e1898d979c21a929058456b35fa3d1253a967cf60556951ac768f95bbfcd1d03fc0eef035887474f20
@@ -130,59 +130,57 @@ module Meshtastic
130
130
  msg_type = message[:decoded][:portnum]
131
131
  case msg_type
132
132
  when :ADMIN_APP
133
- pb_obj = Meshtastic::Admin.decode(payload)
134
- when :ATAK_FORWARDER
135
- pb_obj = Meshtastic::AtakForwarder.decode(payload)
136
- when :ATAK_PLUGIN
137
- pb_obj = Meshtastic::AtakPlugin.decode(payload)
138
- when :AUDIO_APP
139
- pb_obj = Meshtastic::Audio.decode(payload)
140
- when :DETECTION_SENSOR_APP
141
- pb_obj = Meshtastic::DetectionSensor.decode(payload)
142
- when :IP_TUNNEL_APP
143
- pb_obj = Meshtastic::IpTunnel.decode(payload)
133
+ pb_obj = Meshtastic::AdminMessage.decode(payload)
134
+ when :ATAK_FORWARDER, :ATAK_PLUGIN
135
+ pb_obj = Meshtastic::TAKPacket.decode(payload)
136
+ # when :AUDIO_APP
137
+ # pb_obj = Meshtastic::Audio.decode(payload)
138
+ # when :DETECTION_SENSOR_APP
139
+ # pb_obj = Meshtastic::DetectionSensor.decode(payload)
140
+ # when :IP_TUNNEL_APP
141
+ # pb_obj = Meshtastic::IpTunnel.decode(payload)
144
142
  when :MAP_REPORT_APP
145
143
  pb_obj = Meshtastic::MapReport.decode(payload)
146
- when :MAX
147
- pb_obj = Meshtastic::Max.decode(payload)
144
+ # when :MAX
145
+ # pb_obj = Meshtastic::Max.decode(payload)
148
146
  when :NEIGHBORINFO_APP
149
147
  pb_obj = Meshtastic::NeighborInfo.decode(payload)
150
148
  when :NODEINFO_APP
151
149
  pb_obj = Meshtastic::NodeInfo.decode(payload)
152
150
  when :PAXCOUNTER_APP
153
- pb_obj = Meshtastic::Paxcounter.decode(payload)
151
+ pb_obj = Meshtastic::Paxcount.decode(payload)
154
152
  when :POSITION_APP
155
153
  pb_obj = Meshtastic::Position.decode(payload)
156
- when :PRIVATE_APP
157
- pb_obj = Meshtastic::Private.decode(payload)
158
- when :RANGE_TEST_APP
159
- pb_obj = Meshtastic::RangeTest.decode(payload)
154
+ # when :PRIVATE_APP
155
+ # pb_obj = Meshtastic::Private.decode(payload)
156
+ # when :RANGE_TEST_APP
157
+ # pb_obj = Meshtastic::RangeTest.decode(payload)
160
158
  when :REMOTE_HARDWARE_APP
161
- pb_obj = Meshtastic::RemoteHardware.decode(payload)
162
- when :REPLY_APP
163
- pb_obj = Meshtastic::Reply.decode(payload)
159
+ pb_obj = Meshtastic::HardwareMessage.decode(payload)
160
+ # when :REPLY_APP
161
+ # pb_obj = Meshtastic::Reply.decode(payload)
164
162
  when :ROUTING_APP
165
163
  pb_obj = Meshtastic::Routing.decode(payload)
166
164
  when :SERIAL_APP
167
- pb_obj = Meshtastic::Serial.decode(payload)
168
- when :SIMULATOR_APP
169
- pb_obj = Meshtastic::Simulator.decode(payload)
165
+ pb_obj = Meshtastic::SerialConnectionStatus.decode(payload)
166
+ # when :SIMULATOR_APP
167
+ # pb_obj = Meshtastic::Simulator.decode(payload)
170
168
  when :STORE_FORWARD_APP
171
- pb_obj = Meshtastic::StoreForward.decode(payload)
172
- when :TEXT_MESSAGE_APP
173
- pb_obj = Meshtastic::TextMessage.decode(payload)
169
+ pb_obj = Meshtastic::StoreAndForward.decode(payload)
170
+ # when :TEXT_MESSAGE_APP
171
+ # pb_obj = Meshtastic::TextMessage.decode(payload)
174
172
  when :TEXT_MESSAGE_COMPRESSED_APP
175
- pb_obj = Meshtastic::TextMessageCompressed.decode(payload)
173
+ pb_obj = Meshtastic::Compressed.decode(payload)
176
174
  when :TELEMETRY_APP
177
175
  pb_obj = Meshtastic::Telemetry.decode(payload)
178
- when :TRACEROUTE_APP
179
- pb_obj = Meshtastic::Traceroute.decode(payload)
180
- when :UNKNOWN_APP
181
- pb_obj = Meshtastic.Unknown.decode(payload)
176
+ # when :TRACEROUTE_APP
177
+ # pb_obj = Meshtastic::Traceroute.decode(payload)
178
+ # when :UNKNOWN_APP
179
+ # pb_obj = Meshtastic.Unknown.decode(payload)
182
180
  when :WAYPOINT_APP
183
181
  pb_obj = Meshtastic::Waypoint.decode(payload)
184
- when :ZPS_APP
185
- pb_obj = Meshtastic::Zps.decode(payload)
182
+ # when :ZPS_APP
183
+ # pb_obj = Meshtastic::Zps.decode(payload)
186
184
  else
187
185
  puts "WARNING: Unknown message type: #{msg_type}"
188
186
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.26'
4
+ VERSION = '0.0.27'
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.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.