meshtastic 0.0.62 → 0.0.64
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 +2 -2
- data/lib/meshtastic/version.rb +1 -1
- data/lib/meshtastic.rb +2 -2
- 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: 0f1002e971ccfe5a5c3fa0140040169c460adf2aac446b47a6da275654eb34e5
|
4
|
+
data.tar.gz: ca8d5c51eb8f07250487a001567c8466fd7737bde65985e2d8ecb9775fafb6c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d8b3541d73a11e1b185be2005c4cfad67c49f867fc02e6a8b92f9a04fc800812462a51113aeb205518482180264b48a63e41342207478f68f2cdc885ecdfaf
|
7
|
+
data.tar.gz: 115a8003e214845fd731f78bb98fccabb6b36675d45556152f5abb1ff19d210da524cef409522424b88aed183742f015b8013c4574fdfce96befb99c0afc16d3
|
data/lib/meshtastic/mqtt.rb
CHANGED
@@ -215,7 +215,7 @@ module Meshtastic
|
|
215
215
|
|
216
216
|
filter_arr = filter.to_s.split(',').map(&:strip)
|
217
217
|
mqtt_obj.get_packet do |packet_bytes|
|
218
|
-
raw_packet = packet_bytes.to_s
|
218
|
+
raw_packet = packet_bytes.to_s if include_raw
|
219
219
|
raw_topic = packet_bytes.topic ||= ''
|
220
220
|
raw_payload = packet_bytes.payload ||= ''
|
221
221
|
|
@@ -257,7 +257,7 @@ module Meshtastic
|
|
257
257
|
|
258
258
|
nonce_packet_id = [packet_id].pack('V').ljust(8, "\x00")
|
259
259
|
nonce_from_node = [packet_from].pack('V').ljust(8, "\x00")
|
260
|
-
nonce = "#{nonce_packet_id}#{nonce_from_node}"
|
260
|
+
nonce = "#{nonce_packet_id}#{nonce_from_node}"
|
261
261
|
|
262
262
|
psk = psks[:LongFast]
|
263
263
|
target_channel = message[:topic].split('/')[-2].to_sym
|
data/lib/meshtastic/version.rb
CHANGED
data/lib/meshtastic.rb
CHANGED
@@ -96,7 +96,7 @@ module Meshtastic
|
|
96
96
|
port_num = Meshtastic::PortNum::TEXT_MESSAGE_APP
|
97
97
|
|
98
98
|
data = Meshtastic::Data.new
|
99
|
-
data.payload = text
|
99
|
+
data.payload = text
|
100
100
|
data.portnum = port_num
|
101
101
|
data.want_response = want_response
|
102
102
|
# puts data.to_h
|
@@ -229,7 +229,7 @@ module Meshtastic
|
|
229
229
|
if psks
|
230
230
|
nonce_packet_id = [mesh_packet.id].pack('V').ljust(8, "\x00")
|
231
231
|
nonce_from_node = [from].pack('V').ljust(8, "\x00")
|
232
|
-
nonce = "#{nonce_packet_id}#{nonce_from_node}"
|
232
|
+
nonce = "#{nonce_packet_id}#{nonce_from_node}"
|
233
233
|
|
234
234
|
psk = psks[psks.keys.first]
|
235
235
|
dec_psk = Base64.strict_decode64(psk)
|
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.64
|
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-05-
|
11
|
+
date: 2024-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|