meshtastic 0.0.26 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/git_commit.sh +1 -0
- data/lib/meshtastic/mqtt.rb +32 -34
- data/lib/meshtastic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b80ae9abe5cb5bdb83e479b4a3ce480bbd7cbd9bc51435ab1142f5a2c1f4ddcd
|
4
|
+
data.tar.gz: 819a011c9a9e9e595eb7ba98e7ee823b22d325a9c569f37d2b9f0302ac9b344c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d588c49bd385c6e910b36b066f8baf8120a765232171f8306b65bc2a534df45a8c274833754d6b575bb3788209b7bb6e9e9eb1e211297171915b6439d5da1c43
|
7
|
+
data.tar.gz: 42b85500508e2f1a93c2bb486ccb592e4372a5dcea1d09d401a16ee776ecb0b17a57fd6aca8b65315f4b70c46d227378545c4d03f42888a6ea817020c419e353
|
data/git_commit.sh
CHANGED
@@ -7,6 +7,7 @@ if [[ $1 != "" && $2 != "" && $3 != "" ]]; then
|
|
7
7
|
git add . --all
|
8
8
|
echo 'Updating Gems to Latest Versions in Gemfile...'
|
9
9
|
./upgrade_Gemfile_gems.sh
|
10
|
+
./AUTOGEN_meshtastic_protobufs.sh
|
10
11
|
meshtastic_autoinc_version
|
11
12
|
git commit -a -S --author="${1} <${2}>" -m "${3}"
|
12
13
|
./upgrade_meshtastic.sh
|
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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meshtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|