meshtastic 0.0.63 → 0.0.65

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: 393fb0ec1c1f1db3c65fb545a985f9073906b6e782be9aa0b8d95f4eb44c4943
4
- data.tar.gz: 6e1f4b3aae8d04f31dfefc73dad7d43f21a70f076309393f780c29609dc39d67
3
+ metadata.gz: d91f357fca403150fb12ace7fe625383d9aaa594d225c477bb0390122633933e
4
+ data.tar.gz: 90f9684b8a5a96b5d667d06dbc560f328fc208fac41ad37af1004e56e7faa6f2
5
5
  SHA512:
6
- metadata.gz: 1b699b81eaa21d2bafa7b35cf5e5454c306cbb141652d27c5331f095d44be0be4c822ce0688e8ff3e75c88de6d12b928c5266967e7fdd12ac4bb9a360bb98430
7
- data.tar.gz: af285cce37bee8b48f064ae20022205149bda285b9f2c80476986e035f9402770494868f68725ecee476c7e5f21a664f71e28a31fc58f5b9cee2fdbc69b451d4
6
+ metadata.gz: c0ca65c16d6ddc8b0befede6c63065c6a4c59529fda3f33bd585db64c1abe5fa402dd2bc48e03d88e465e97659d7e6d702d3f1c4825dc756839cc2623fca36f0
7
+ data.tar.gz: 2944c7fd404b8695db1bf12c4aeee26b691eec11f6818f5cf9b88936d13633fd46ae0990bc219691de42563fc5df39f0fffe3a74af00be156b6a1e08a9aa9c1d
@@ -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.65'
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.force_encoding('ASCII-8BIT')
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.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.