meshtastic 0.0.33 → 0.0.34

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: 5cc77b2e88470456485851d5721eeffe6e236272135f59e8e9f9ff3cba390cb6
4
- data.tar.gz: 7404c0e767b75ba26c36f84d5ed0b3c66a2f40c14faf7f5e0d3e0e96cef506a9
3
+ metadata.gz: 8bc079b846550e65c15013b3926d0680fbbb77e393484b2c001cd9ad95777f00
4
+ data.tar.gz: 47cde9a565ac4815bbeccf179269e1be1c982c107774b2790b3a7a2bd4cf883c
5
5
  SHA512:
6
- metadata.gz: 1c2fe7fd8d6b2dd057a12491f62d0fdaec47fe64b90a1237e4880a035e6e8608a3ac78f8f0910b8b9a8250133a4404dddf9b8515b1f77515c6c8e61fcb2a1b51
7
- data.tar.gz: a3330f2c01d5bddeba52d5c781c57b3ff0667712d8df94733ec87795abf5b23d27831b2717d10071214460f96f1a39bbdee162a5d39d5b64c271fb68bb7c3d2f
6
+ metadata.gz: 1b864230b6ab3db1c78955be811421ae7910cdbfeb962483a2b9c1afa7e9a7ec170e0eb1aae5f05c5f94049c7b122cfe9e8f719deb1c98d6b308d5b8ad3568a7
7
+ data.tar.gz: 8b5ab00dab82fdd351c9c7634765a121c316dfd1f0fb9dc319ab451073986d8c1a822cc95f421accd36db42a6e0c2ced4610f49a305692e667061ecc8b43f15e
@@ -203,6 +203,13 @@ module Meshtastic
203
203
  lon: longitude
204
204
  ).first.data
205
205
  end
206
+
207
+ # If we there's a mac address, make it look like one.
208
+ if message[:decoded][:payload].keys.include?(:macaddr)
209
+ macaddr = message[:decoded][:payload][:macaddr]
210
+ macaddr_fmt = macaddr.bytes.map { |byte| byte.to_s(16).rjust(2, '0') }.join(':')
211
+ message[:decoded][:payload][:macaddr] = macaddr_fmt
212
+ end
206
213
  # puts pb_obj.public_methods
207
214
  # message[:decoded][:pb_obj] = pb_obj
208
215
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.33'
4
+ VERSION = '0.0.34'
5
5
  end
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.33
4
+ version: 0.0.34
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-04-30 00:00:00.000000000 Z
11
+ date: 2024-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler