meshtastic 0.0.105 → 0.0.107

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: a2faf3cb1fc735fb508e63402938134c549897b373426460803c6371f4a8f864
4
- data.tar.gz: efd8e78c866b76c2872dc32990c3c04248100af2f6bc8f67d2fdb43471caf297
3
+ metadata.gz: bc78ac0ce2c27096b57b58c11993e47e8f4e6ae59c1bf0a15d0876d9faf88e09
4
+ data.tar.gz: 4b29b68ddae9caeea2c9db3125e1a84a8b0599e7e253301f4db475fa90403e4c
5
5
  SHA512:
6
- metadata.gz: f2e30a0155eed0fbfb1097e9238f5800660e093ecfa4c70856d2803abeda16212b5ea64953e9d9e6a018b54d166770e5cf7d27dc4d3815f7731b8343b5061a0d
7
- data.tar.gz: 41a3aca53fe062932259929138c088258f1d1ad29a8b0f04240a6bd46ef73467587ed669479201e9740e9df42dfbc0e7b51e2986d09eeb03dd89aa32e94481bd
6
+ metadata.gz: '0485bace95ee2a6c585418b7d06e442adf3040ddff57c619b7889582fa83efa4561c2881016abd66996c108aad50aecd60f786f5d546c4ed15f858e95a48d1fa'
7
+ data.tar.gz: 746dbf6074a38c21bc3cf8e28ad983d4861005e8de9bd9edfe4440c4de3de854cd662a26a8adbc20246c24e30f12fed9d6682c240ffa3de37e12ab078a80c48a
@@ -15,6 +15,9 @@ fi
15
15
  cd $mesh_root
16
16
  if [[ ! -d $mesh_protobufs_root ]]; then
17
17
  sudo git clone https://github.com/meshtastic/protobufs
18
+ else
19
+ cd $mesh_protobufs_root
20
+ sudo git pull
18
21
  fi
19
22
 
20
23
  cd $mesh_protobufs_root
data/git_commit.sh CHANGED
@@ -4,7 +4,6 @@ if [[ $1 != "" && $2 != "" && $3 != "" ]]; then
4
4
  git config pull.rebase false
5
5
  git config commit.gpgsign true
6
6
  git pull origin master
7
- cd protobufs && git pull && cd -
8
7
  git add . --all
9
8
  echo 'Updating Gems to Latest Versions in Gemfile...'
10
9
  ./upgrade_Gemfile_gems.sh
@@ -18,6 +18,7 @@ module Meshtastic
18
18
  # mqtt_obj = Meshtastic::MQQT.connect(
19
19
  # host: 'optional - mqtt host (default: mqtt.meshtastic.org)',
20
20
  # port: 'optional - mqtt port (defaults: 1883)',
21
+ # tls: 'optional - use TLS (default: false)',
21
22
  # username: 'optional - mqtt username (default: meshdev)',
22
23
  # password: 'optional - (default: large4cats)',
23
24
  # client_id: 'optional - client ID (default: random 4-byte hex string)',
@@ -29,6 +30,8 @@ module Meshtastic
29
30
  # Publicly available MQTT server / credentials by default
30
31
  host = opts[:host] ||= 'mqtt.meshtastic.org'
31
32
  port = opts[:port] ||= 1883
33
+ tls = true if opts[:tls]
34
+ tls = false unless opts[:tls]
32
35
  username = opts[:username] ||= 'meshdev'
33
36
  password = opts[:password] ||= 'large4cats'
34
37
  client_id = opts[:client_id] ||= SecureRandom.random_bytes(4).unpack1('H*').to_s
@@ -40,6 +43,7 @@ module Meshtastic
40
43
  mqtt_obj = MQTTClient.connect(
41
44
  host: host,
42
45
  port: port,
46
+ tls: tls,
43
47
  username: username,
44
48
  password: password,
45
49
  client_id: client_id
@@ -279,6 +283,7 @@ module Meshtastic
279
283
  mqtt_obj = #{self}.connect(
280
284
  host: 'optional - mqtt host (default: mqtt.meshtastic.org)',
281
285
  port: 'optional - mqtt port (defaults: 1883)',
286
+ tls: 'optional - use TLS (default: false)',
282
287
  username: 'optional - mqtt username (default: meshdev)',
283
288
  password: 'optional - (default: large4cats)',
284
289
  client_id: 'optional - client ID (default: random 4-byte hex string)',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.105'
4
+ VERSION = '0.0.107'
5
5
  end
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.105
4
+ version: 0.0.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.