meshtastic 0.0.86 → 0.0.87
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/version.rb +1 -1
- data/lib/meshtastic.rb +4 -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: '0449a6cfbd329bf29d9ab70e979f512b5804c23b042e44489ab295d99f992b43'
|
4
|
+
data.tar.gz: 89aa67df0c714ace91f3404a574e315d0ae1e515451e5f60888c7c49cf8dbc3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e9307daac9a9237d9ed3a19cf40dc4891a8105b2864bd25d3312e0900a706c1644cc0b49c594e7589e71c7358f1b2207c593bc8383a9c2a1e7420571b09647e
|
7
|
+
data.tar.gz: 395ea2d2475432c098bc8342005f9112bd9b1783692728a6e1ca65d5872457d782747498885fd8bf0ac9c3b3b26045d9d291addd5879d1e280997446ac8b025a
|
data/lib/meshtastic/version.rb
CHANGED
data/lib/meshtastic.rb
CHANGED
@@ -66,12 +66,14 @@ module Meshtastic
|
|
66
66
|
public_class_method def self.send_text(opts = {})
|
67
67
|
# Send a text message to a node
|
68
68
|
from = opts[:from]
|
69
|
-
from_hex = from.delete('!').bytes.map { |b| b.to_s(16).rjust(2, '0') }.join if from.is_a?(String)
|
69
|
+
# from_hex = from.delete('!').bytes.map { |b| b.to_s(16).rjust(2, '0') }.join if from.is_a?(String)
|
70
|
+
from_hex = from.delete('!') if from.is_a?(String)
|
70
71
|
from = from_hex.to_i(16) if from_hex
|
71
72
|
raise 'ERROR: from parameter is required.' unless from
|
72
73
|
|
73
74
|
to = opts[:to] ||= 0xFFFFFFFF
|
74
|
-
to_hex = to.delete('!').bytes.map { |b| b.to_s(16).rjust(2, '0') }.join if to.is_a?(String)
|
75
|
+
# to_hex = to.delete('!').bytes.map { |b| b.to_s(16).rjust(2, '0') }.join if to.is_a?(String)
|
76
|
+
to_hex = to.delete('!') if to.is_a?(String)
|
75
77
|
to = to_hex.to_i(16) if to_hex
|
76
78
|
|
77
79
|
last_packet_id = opts[:last_packet_id] ||= 0
|