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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac6ac4b5cacacd44f90101c47f1f3260ab7b8d91d3933259309192f644f70b73
4
- data.tar.gz: 53cfc1d1e28a3db0f84df10602dac4bc48b9afc6e829b398cd9cd362af096123
3
+ metadata.gz: 0f1002e971ccfe5a5c3fa0140040169c460adf2aac446b47a6da275654eb34e5
4
+ data.tar.gz: ca8d5c51eb8f07250487a001567c8466fd7737bde65985e2d8ecb9775fafb6c5
5
5
  SHA512:
6
- metadata.gz: b775de50a51ab00d9c3626f95aab4378c9709edf550e92773c663d4280772c088973f955cf512935aa45a5f576a2281442b9d1ba745288a2461e2c98a2e16a3e
7
- data.tar.gz: f97938ee9328e4ed6dcd664fdba8533bfea363b88636b5b903cef3f0b2139956daccf2146a598db730f1d975873989f31b90ddb1741249f9607ebab318f9cfff
6
+ metadata.gz: 39d8b3541d73a11e1b185be2005c4cfad67c49f867fc02e6a8b92f9a04fc800812462a51113aeb205518482180264b48a63e41342207478f68f2cdc885ecdfaf
7
+ data.tar.gz: 115a8003e214845fd731f78bb98fccabb6b36675d45556152f5abb1ff19d210da524cef409522424b88aed183742f015b8013c4574fdfce96befb99c0afc16d3
@@ -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.b if include_raw
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}".b
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.62'
4
+ VERSION = '0.0.64'
5
5
  end
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.encode('UTF-8')
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}".b
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.62
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-14 00:00:00.000000000 Z
11
+ date: 2024-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler