meshtastic 0.0.31 → 0.0.32
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 +8 -9
- 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: 1a810ada159c4d2bed444d0ef5e123a2959caec545ade37307ad621b885cb92f
|
4
|
+
data.tar.gz: 00c1c0e5aceb9a75c009af4aedd730918f6d5a8c6acca8fc1df589a357df4510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c01f0484f9b9da94d50c7d2f964eeffb9cb374e9993955337502081bcefab8af2a85a692fcb58ed6a2a2981528effd8189faf9f105eda3cb81b60704a60f492
|
7
|
+
data.tar.gz: 940d4174955651ede2eb5938314076a0702ee4ff7eb2c2b56eae491704d7d691ece5c41bbb248cac35ff385d6df48029af3fa8d556c66e11bf09d38db0cb8698
|
data/lib/meshtastic/mqtt.rb
CHANGED
@@ -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::
|
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
|
-
|
159
|
-
#
|
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
|
-
|
169
|
-
|
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
|
data/lib/meshtastic/version.rb
CHANGED