meshtastic 0.0.49 → 0.0.50
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 +8 -4
- data/lib/meshtastic/version.rb +1 -1
- 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: 87f863cdd44f899cd5dac5c3dec132b88c4851d0e2a27642cfe1a2832e4b22b4
|
|
4
|
+
data.tar.gz: 7e1e8630780251ea8288a74572d8ea7a9ea3e1e53b524937245822667159f17f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 121ec8034eb3620b36ea8ca360ea3c3698ea8d4953ea31f5aee35360865553879d6d635921e184c1b64692fdc422685241596cf4f6adec5dea8493f254585fe2
|
|
7
|
+
data.tar.gz: bf802728fea13ae6cbcdd6997f8eccf4b2947859dfb830edc685f68f32424c6c4e884f4cbabd5fca16a003bbf1e58c078a9b3d1fffe3907e1bb2d14c67dc56b2
|
data/lib/meshtastic/mqtt.rb
CHANGED
|
@@ -151,8 +151,10 @@ module Meshtastic
|
|
|
151
151
|
|
|
152
152
|
if payload.keys.include?(:time)
|
|
153
153
|
time_int = payload[:time]
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
if time_int.is_a?(Integer)
|
|
155
|
+
time_utc = Time.at(time_int).utc.to_s
|
|
156
|
+
payload[:time_utc] = time_utc
|
|
157
|
+
end
|
|
156
158
|
end
|
|
157
159
|
|
|
158
160
|
if gps_metadata && payload[:latitude] && payload[:longitude]
|
|
@@ -237,8 +239,10 @@ module Meshtastic
|
|
|
237
239
|
message[:node_id_to] = "!#{message[:to].to_i.to_s(16)}"
|
|
238
240
|
if message.keys.include?(:rx_time)
|
|
239
241
|
rx_time_int = message[:rx_time]
|
|
240
|
-
|
|
241
|
-
|
|
242
|
+
if rx_time_int.is_a?(Integer)
|
|
243
|
+
rx_time_utc = Time.at(rx_time_int).utc.to_s
|
|
244
|
+
message[:rx_time_utc] = rx_time_utc
|
|
245
|
+
end
|
|
242
246
|
end
|
|
243
247
|
|
|
244
248
|
# If encrypted_message is not nil, then decrypt
|
data/lib/meshtastic/version.rb
CHANGED