meshtastic 0.0.121 → 0.0.122
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/Gemfile +3 -2
- data/lib/meshtastic/interdevice_pb.rb +42 -0
- data/lib/meshtastic/version.rb +1 -1
- data/spec/lib/meshtastic/interdevice_pb_spec.rb +6 -0
- data/upgrade_Gemfile_gems.sh +3 -3
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d8a18b5f55e128ed0c7c47c411f7e78ebb8e6a4554dcb145939f3e7b337b0fb
|
4
|
+
data.tar.gz: 8d8c7b5ca02e2e7bbc906167d08f764ec57c74cbc2020ebc5efd20779983bff3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 737add001efbbfe96aa189a047f45f9833a178c96ffa5e81a69a78ea056b4391d0bfd0756fad0611c0d7fe0b95dec96cbed1b8b49e0ccea17e8f6bc66c54991a
|
7
|
+
data.tar.gz: a44b2b1abc6fc2d1b5afef6b7580a195bfaa3c1037795c3e23a278a46b04330e546268a4b365a2ef373153e0a12eba8a716b2af26c292b6c52305d56a03bcb50
|
data/Gemfile
CHANGED
@@ -9,12 +9,13 @@ gemspec
|
|
9
9
|
gem 'bundler', '>=2.6.8'
|
10
10
|
gem 'bundle-audit', '0.1.0'
|
11
11
|
gem 'geocoder', '1.8.5'
|
12
|
-
gem 'google-protobuf', '3.21.12'
|
12
|
+
# gem 'google-protobuf', '3.21.12'
|
13
|
+
gem 'google-protobuf', '4.30.2'
|
13
14
|
gem 'mqtt', '0.6.0'
|
14
15
|
gem 'rake', '13.2.1'
|
15
16
|
gem 'rdoc', '6.13.1'
|
16
17
|
gem 'rspec', '3.13.0'
|
17
|
-
gem 'rubocop', '>=1.75.
|
18
|
+
gem 'rubocop', '>=1.75.3'
|
18
19
|
gem 'rubocop-rake', '>=0.7.1'
|
19
20
|
gem 'rubocop-rspec', '>=3.6.0'
|
20
21
|
gem 'rvm', '1.11.3.9'
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/interdevice.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("meshtastic/interdevice.proto", :syntax => :proto3) do
|
8
|
+
add_message "meshtastic.SensorData" do
|
9
|
+
optional :type, :enum, 1, "meshtastic.MessageType"
|
10
|
+
oneof :data do
|
11
|
+
optional :float_value, :float, 2
|
12
|
+
optional :uint32_value, :uint32, 3
|
13
|
+
end
|
14
|
+
end
|
15
|
+
add_message "meshtastic.InterdeviceMessage" do
|
16
|
+
oneof :data do
|
17
|
+
optional :nmea, :string, 1
|
18
|
+
optional :sensor, :message, 2, "meshtastic.SensorData"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
add_enum "meshtastic.MessageType" do
|
22
|
+
value :ACK, 0
|
23
|
+
value :COLLECT_INTERVAL, 160
|
24
|
+
value :BEEP_ON, 161
|
25
|
+
value :BEEP_OFF, 162
|
26
|
+
value :SHUTDOWN, 163
|
27
|
+
value :POWER_ON, 164
|
28
|
+
value :SCD41_TEMP, 176
|
29
|
+
value :SCD41_HUMIDITY, 177
|
30
|
+
value :SCD41_CO2, 178
|
31
|
+
value :AHT20_TEMP, 179
|
32
|
+
value :AHT20_HUMIDITY, 180
|
33
|
+
value :TVOC_INDEX, 181
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
module Meshtastic
|
39
|
+
SensorData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.SensorData").msgclass
|
40
|
+
InterdeviceMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.InterdeviceMessage").msgclass
|
41
|
+
MessageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.MessageType").enummodule
|
42
|
+
end
|
data/lib/meshtastic/version.rb
CHANGED
data/upgrade_Gemfile_gems.sh
CHANGED
@@ -8,9 +8,9 @@ cat Gemfile | awk '{print $2}' | grep -E "^'.+$" | grep -v -e rubygems.org | whi
|
|
8
8
|
case $this_gem in
|
9
9
|
'bundler'|'rubocop'|'rubocop-rake'|'rubocop-rspec')
|
10
10
|
sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '>=${latest_version}'/g" Gemfile;;
|
11
|
-
'google-protobuf')
|
12
|
-
|
13
|
-
|
11
|
+
# 'google-protobuf')
|
12
|
+
# same_version=`protoc --version | awk '{ print $NF}'`
|
13
|
+
# sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '${same_version}'/g" Gemfile;;
|
14
14
|
*)
|
15
15
|
sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '${latest_version}'/g" Gemfile;;
|
16
16
|
esac
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meshtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.122
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: bundler
|
@@ -57,14 +57,14 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - '='
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: 4.30.2
|
61
61
|
type: :runtime
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - '='
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 4.30.2
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: mqtt
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,14 +127,14 @@ dependencies:
|
|
127
127
|
requirements:
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 1.75.
|
130
|
+
version: 1.75.3
|
131
131
|
type: :runtime
|
132
132
|
prerelease: false
|
133
133
|
version_requirements: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 1.75.
|
137
|
+
version: 1.75.3
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: rubocop-rake
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
@@ -250,6 +250,7 @@ files:
|
|
250
250
|
- lib/meshtastic/device_ui_pb.rb
|
251
251
|
- lib/meshtastic/deviceonly.rb
|
252
252
|
- lib/meshtastic/deviceonly_pb.rb
|
253
|
+
- lib/meshtastic/interdevice_pb.rb
|
253
254
|
- lib/meshtastic/localonly.rb
|
254
255
|
- lib/meshtastic/localonly_pb.rb
|
255
256
|
- lib/meshtastic/mesh_interface.rb
|
@@ -300,6 +301,7 @@ files:
|
|
300
301
|
- spec/lib/meshtastic/device_ui_pb_spec.rb
|
301
302
|
- spec/lib/meshtastic/deviceonly_pb_spec.rb
|
302
303
|
- spec/lib/meshtastic/deviceonly_spec.rb
|
304
|
+
- spec/lib/meshtastic/interdevice_pb_spec.rb
|
303
305
|
- spec/lib/meshtastic/localonly_pb_spec.rb
|
304
306
|
- spec/lib/meshtastic/localonly_spec.rb
|
305
307
|
- spec/lib/meshtastic/mesh_interface_spec.rb
|
@@ -353,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
353
355
|
- !ruby/object:Gem::Version
|
354
356
|
version: '0'
|
355
357
|
requirements: []
|
356
|
-
rubygems_version: 3.6.
|
358
|
+
rubygems_version: 3.6.8
|
357
359
|
specification_version: 4
|
358
360
|
summary: Ruby gem for Meshtastic
|
359
361
|
test_files: []
|