meshtastic 0.0.51 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/meshtastic/mqtt.rb +0 -2
- data/lib/meshtastic/version.rb +1 -1
- data/lib/meshtastic.rb +2 -2
- 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: a09f7af15af288d0de354979f38b5a976b3076b2756b4c3007b5948e6580c32c
|
4
|
+
data.tar.gz: 3fd9b22545978f2aeb468d5c5f61c5ea0623224e6c242472992be963f83376f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f93cc53e204a5738e97450bd4697587feeed09539115c1591e0b1aa5432ed5c1ae83bc6175b4917653b93555cf374612f97a8081e59eba95b1cafff827dd2130
|
7
|
+
data.tar.gz: ff03ee0103b414b675d28ff934b7684f9c2b24a02721d3cbab37465852666e092286aee35d7c8f2642161aa3b48c294164aebacdd0c49dede081b277195756a1
|
data/lib/meshtastic/mqtt.rb
CHANGED
@@ -260,9 +260,7 @@ module Meshtastic
|
|
260
260
|
|
261
261
|
psk = psks[:LongFast]
|
262
262
|
target_channel = message[:topic].split('/')[-2].to_sym
|
263
|
-
puts "Target Channel: #{target_channel}"
|
264
263
|
psk = psks[target_channel] if psks.keys.include?(target_channel)
|
265
|
-
puts "PSK: #{psk}"
|
266
264
|
dec_psk = Base64.strict_decode64(psk)
|
267
265
|
|
268
266
|
cipher = OpenSSL::Cipher.new('AES-128-CTR')
|
data/lib/meshtastic/version.rb
CHANGED
data/lib/meshtastic.rb
CHANGED
@@ -95,7 +95,7 @@ module Meshtastic
|
|
95
95
|
data.payload = text
|
96
96
|
data.portnum = port_num
|
97
97
|
data.want_response = want_response
|
98
|
-
puts data.to_h
|
98
|
+
# puts data.to_h
|
99
99
|
|
100
100
|
send_data(
|
101
101
|
from: from,
|
@@ -230,7 +230,7 @@ module Meshtastic
|
|
230
230
|
|
231
231
|
mesh_packet.encrypted = encrypted_payload
|
232
232
|
end
|
233
|
-
puts mesh_packet.to_h
|
233
|
+
# puts mesh_packet.to_h
|
234
234
|
|
235
235
|
to_radio = Meshtastic::ToRadio.new
|
236
236
|
to_radio.packet = mesh_packet
|