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 +4 -4
- data/lib/meshtastic/mqtt.rb +32 -34
- data/lib/meshtastic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 898ebccfa6f9e1dfaf7a8dceb7e96a8809c2dfb264c292e7615415296d09e3a9
|
4
|
+
data.tar.gz: 78b2aed960cfb158ec4e5fa18d4473030256c9bbde47ad279cefdba757165c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14c3e366e953ba5188f53777072542c987d927c682aec73d098e3b5e89b19a6fb659df9561e56fb1d64b107acd105a677416e519c8f5011777a2881f67f81c70
|
7
|
+
data.tar.gz: 3b33c81aa2da8352212faf364e41f9abf5ab3f19f14a02e1898d979c21a929058456b35fa3d1253a967cf60556951ac768f95bbfcd1d03fc0eef035887474f20
|
data/lib/meshtastic/mqtt.rb
CHANGED
@@ -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::
|
134
|
-
when :ATAK_FORWARDER
|
135
|
-
pb_obj = Meshtastic::
|
136
|
-
|
137
|
-
pb_obj = Meshtastic::
|
138
|
-
|
139
|
-
pb_obj = Meshtastic::
|
140
|
-
|
141
|
-
pb_obj = Meshtastic::
|
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
|
-
|
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::
|
151
|
+
pb_obj = Meshtastic::Paxcount.decode(payload)
|
154
152
|
when :POSITION_APP
|
155
153
|
pb_obj = Meshtastic::Position.decode(payload)
|
156
|
-
|
157
|
-
pb_obj = Meshtastic::Private.decode(payload)
|
158
|
-
|
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::
|
162
|
-
|
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::
|
168
|
-
|
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::
|
172
|
-
|
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::
|
173
|
+
pb_obj = Meshtastic::Compressed.decode(payload)
|
176
174
|
when :TELEMETRY_APP
|
177
175
|
pb_obj = Meshtastic::Telemetry.decode(payload)
|
178
|
-
|
179
|
-
pb_obj = Meshtastic::Traceroute.decode(payload)
|
180
|
-
|
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
|
-
|
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
|
data/lib/meshtastic/version.rb
CHANGED