meshtastic 0.0.63 → 0.0.64

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 393fb0ec1c1f1db3c65fb545a985f9073906b6e782be9aa0b8d95f4eb44c4943
4
- data.tar.gz: 6e1f4b3aae8d04f31dfefc73dad7d43f21a70f076309393f780c29609dc39d67
3
+ metadata.gz: 0f1002e971ccfe5a5c3fa0140040169c460adf2aac446b47a6da275654eb34e5
4
+ data.tar.gz: ca8d5c51eb8f07250487a001567c8466fd7737bde65985e2d8ecb9775fafb6c5
5
5
  SHA512:
6
- metadata.gz: 1b699b81eaa21d2bafa7b35cf5e5454c306cbb141652d27c5331f095d44be0be4c822ce0688e8ff3e75c88de6d12b928c5266967e7fdd12ac4bb9a360bb98430
7
- data.tar.gz: af285cce37bee8b48f064ae20022205149bda285b9f2c80476986e035f9402770494868f68725ecee476c7e5f21a664f71e28a31fc58f5b9cee2fdbc69b451d4
6
+ metadata.gz: 39d8b3541d73a11e1b185be2005c4cfad67c49f867fc02e6a8b92f9a04fc800812462a51113aeb205518482180264b48a63e41342207478f68f2cdc885ecdfaf
7
+ data.tar.gz: 115a8003e214845fd731f78bb98fccabb6b36675d45556152f5abb1ff19d210da524cef409522424b88aed183742f015b8013c4574fdfce96befb99c0afc16d3
@@ -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.63'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meshtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.63
4
+ version: 0.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.