meshtastic 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +27 -0
- data/.gitignore +29 -0
- data/.rspec +3 -0
- data/.rubocop.yml +10 -0
- data/.rubocop_todo.yml +107 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/AUTOGEN_meshtastic_protobufs.sh +25 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +23 -0
- data/LICENSE +21 -0
- data/README.md +31 -0
- data/Rakefile +17 -0
- data/bin/console +11 -0
- data/bin/meshtastic_autoinc_version +38 -0
- data/bin/setup +8 -0
- data/build_meshtastic_gem.sh +58 -0
- data/git_commit.sh +23 -0
- data/lib/meshtastic/admin_pb.rb +100 -0
- data/lib/meshtastic/apponly_pb.rb +20 -0
- data/lib/meshtastic/atak_pb.rb +80 -0
- data/lib/meshtastic/cannedmessages_pb.rb +16 -0
- data/lib/meshtastic/channel_pb.rb +38 -0
- data/lib/meshtastic/clientonly_pb.rb +22 -0
- data/lib/meshtastic/config_pb.rb +235 -0
- data/lib/meshtastic/connection_status_pb.rb +47 -0
- data/lib/meshtastic/deviceonly_pb.rb +75 -0
- data/lib/meshtastic/localonly_pb.rb +43 -0
- data/lib/meshtastic/mesh_pb.rb +359 -0
- data/lib/meshtastic/module_config_pb.rb +227 -0
- data/lib/meshtastic/mqtt.rb +271 -0
- data/lib/meshtastic/mqtt.rb.BAKq! +214 -0
- data/lib/meshtastic/mqtt_pb.rb +37 -0
- data/lib/meshtastic/paxcount_pb.rb +18 -0
- data/lib/meshtastic/portnums_pb.rb +42 -0
- data/lib/meshtastic/remote_hardware_pb.rb +27 -0
- data/lib/meshtastic/rtttl_pb.rb +16 -0
- data/lib/meshtastic/storeforward_pb.rb +64 -0
- data/lib/meshtastic/telemetry_pb.rb +85 -0
- data/lib/meshtastic/version.rb +5 -0
- data/lib/meshtastic/xmodem_pb.rb +30 -0
- data/lib/meshtastic.rb +34 -0
- data/meshtastic.gemspec +73 -0
- data/sig/meshtastic.rbs +4 -0
- data/spec/lib/meshtastic/admin_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/apponly_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/atak_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/cannedmessages_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/channel_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/clientonly_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/config_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/connection_status_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/deviceonly_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/localonly_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/mesh_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/module_config_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/mqtt_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/mqtt_spec.rb +6 -0
- data/spec/lib/meshtastic/paxcount_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/portnums_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/remote_hardware_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/rtttl_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/storeforward_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/telemetry_pb_spec.rb +6 -0
- data/spec/lib/meshtastic/version_spec.rb +17 -0
- data/spec/lib/meshtastic/xmodem_pb_spec.rb +6 -0
- data/spec/lib/meshtastic_spec.rb +6 -0
- data/spec/spec_helper.rb +15 -0
- data/upgrade_Gemfile_gems.sh +20 -0
- data/upgrade_gem.sh +4 -0
- data/upgrade_meshtastic.sh +13 -0
- data/upgrade_ruby.sh +45 -0
- metadata +106 -3
@@ -0,0 +1,80 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/atak.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("meshtastic/atak.proto", :syntax => :proto3) do
|
8
|
+
add_message "meshtastic.TAKPacket" do
|
9
|
+
optional :is_compressed, :bool, 1
|
10
|
+
optional :contact, :message, 2, "meshtastic.Contact"
|
11
|
+
optional :group, :message, 3, "meshtastic.Group"
|
12
|
+
optional :status, :message, 4, "meshtastic.Status"
|
13
|
+
oneof :payload_variant do
|
14
|
+
optional :pli, :message, 5, "meshtastic.PLI"
|
15
|
+
optional :chat, :message, 6, "meshtastic.GeoChat"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
add_message "meshtastic.GeoChat" do
|
19
|
+
optional :message, :string, 1
|
20
|
+
proto3_optional :to, :string, 2
|
21
|
+
end
|
22
|
+
add_message "meshtastic.Group" do
|
23
|
+
optional :role, :enum, 1, "meshtastic.MemberRole"
|
24
|
+
optional :team, :enum, 2, "meshtastic.Team"
|
25
|
+
end
|
26
|
+
add_message "meshtastic.Status" do
|
27
|
+
optional :battery, :uint32, 1
|
28
|
+
end
|
29
|
+
add_message "meshtastic.Contact" do
|
30
|
+
optional :callsign, :string, 1
|
31
|
+
optional :device_callsign, :string, 2
|
32
|
+
end
|
33
|
+
add_message "meshtastic.PLI" do
|
34
|
+
optional :latitude_i, :sfixed32, 1
|
35
|
+
optional :longitude_i, :sfixed32, 2
|
36
|
+
optional :altitude, :int32, 3
|
37
|
+
optional :speed, :uint32, 4
|
38
|
+
optional :course, :uint32, 5
|
39
|
+
end
|
40
|
+
add_enum "meshtastic.Team" do
|
41
|
+
value :Unspecifed_Color, 0
|
42
|
+
value :White, 1
|
43
|
+
value :Yellow, 2
|
44
|
+
value :Orange, 3
|
45
|
+
value :Magenta, 4
|
46
|
+
value :Red, 5
|
47
|
+
value :Maroon, 6
|
48
|
+
value :Purple, 7
|
49
|
+
value :Dark_Blue, 8
|
50
|
+
value :Blue, 9
|
51
|
+
value :Cyan, 10
|
52
|
+
value :Teal, 11
|
53
|
+
value :Green, 12
|
54
|
+
value :Dark_Green, 13
|
55
|
+
value :Brown, 14
|
56
|
+
end
|
57
|
+
add_enum "meshtastic.MemberRole" do
|
58
|
+
value :Unspecifed, 0
|
59
|
+
value :TeamMember, 1
|
60
|
+
value :TeamLead, 2
|
61
|
+
value :HQ, 3
|
62
|
+
value :Sniper, 4
|
63
|
+
value :Medic, 5
|
64
|
+
value :ForwardObserver, 6
|
65
|
+
value :RTO, 7
|
66
|
+
value :K9, 8
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
module Meshtastic
|
72
|
+
TAKPacket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.TAKPacket").msgclass
|
73
|
+
GeoChat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.GeoChat").msgclass
|
74
|
+
Group = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Group").msgclass
|
75
|
+
Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Status").msgclass
|
76
|
+
Contact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Contact").msgclass
|
77
|
+
PLI = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.PLI").msgclass
|
78
|
+
Team = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Team").enummodule
|
79
|
+
MemberRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.MemberRole").enummodule
|
80
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/cannedmessages.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("meshtastic/cannedmessages.proto", :syntax => :proto3) do
|
8
|
+
add_message "meshtastic.CannedMessageModuleConfig" do
|
9
|
+
optional :messages, :string, 1
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module Meshtastic
|
15
|
+
CannedMessageModuleConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.CannedMessageModuleConfig").msgclass
|
16
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/channel.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("meshtastic/channel.proto", :syntax => :proto3) do
|
8
|
+
add_message "meshtastic.ChannelSettings" do
|
9
|
+
optional :channel_num, :uint32, 1
|
10
|
+
optional :psk, :bytes, 2
|
11
|
+
optional :name, :string, 3
|
12
|
+
optional :id, :fixed32, 4
|
13
|
+
optional :uplink_enabled, :bool, 5
|
14
|
+
optional :downlink_enabled, :bool, 6
|
15
|
+
optional :module_settings, :message, 7, "meshtastic.ModuleSettings"
|
16
|
+
end
|
17
|
+
add_message "meshtastic.ModuleSettings" do
|
18
|
+
optional :position_precision, :uint32, 1
|
19
|
+
end
|
20
|
+
add_message "meshtastic.Channel" do
|
21
|
+
optional :index, :int32, 1
|
22
|
+
optional :settings, :message, 2, "meshtastic.ChannelSettings"
|
23
|
+
optional :role, :enum, 3, "meshtastic.Channel.Role"
|
24
|
+
end
|
25
|
+
add_enum "meshtastic.Channel.Role" do
|
26
|
+
value :DISABLED, 0
|
27
|
+
value :PRIMARY, 1
|
28
|
+
value :SECONDARY, 2
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
module Meshtastic
|
34
|
+
ChannelSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.ChannelSettings").msgclass
|
35
|
+
ModuleSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.ModuleSettings").msgclass
|
36
|
+
Channel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Channel").msgclass
|
37
|
+
Channel::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Channel.Role").enummodule
|
38
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/clientonly.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'meshtastic/localonly_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("meshtastic/clientonly.proto", :syntax => :proto3) do
|
10
|
+
add_message "meshtastic.DeviceProfile" do
|
11
|
+
proto3_optional :long_name, :string, 1
|
12
|
+
proto3_optional :short_name, :string, 2
|
13
|
+
proto3_optional :channel_url, :string, 3
|
14
|
+
proto3_optional :config, :message, 4, "meshtastic.LocalConfig"
|
15
|
+
proto3_optional :module_config, :message, 5, "meshtastic.LocalModuleConfig"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Meshtastic
|
21
|
+
DeviceProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.DeviceProfile").msgclass
|
22
|
+
end
|
@@ -0,0 +1,235 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/config.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("meshtastic/config.proto", :syntax => :proto3) do
|
8
|
+
add_message "meshtastic.Config" do
|
9
|
+
oneof :payload_variant do
|
10
|
+
optional :device, :message, 1, "meshtastic.Config.DeviceConfig"
|
11
|
+
optional :position, :message, 2, "meshtastic.Config.PositionConfig"
|
12
|
+
optional :power, :message, 3, "meshtastic.Config.PowerConfig"
|
13
|
+
optional :network, :message, 4, "meshtastic.Config.NetworkConfig"
|
14
|
+
optional :display, :message, 5, "meshtastic.Config.DisplayConfig"
|
15
|
+
optional :lora, :message, 6, "meshtastic.Config.LoRaConfig"
|
16
|
+
optional :bluetooth, :message, 7, "meshtastic.Config.BluetoothConfig"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
add_message "meshtastic.Config.DeviceConfig" do
|
20
|
+
optional :role, :enum, 1, "meshtastic.Config.DeviceConfig.Role"
|
21
|
+
optional :serial_enabled, :bool, 2
|
22
|
+
optional :debug_log_enabled, :bool, 3
|
23
|
+
optional :button_gpio, :uint32, 4
|
24
|
+
optional :buzzer_gpio, :uint32, 5
|
25
|
+
optional :rebroadcast_mode, :enum, 6, "meshtastic.Config.DeviceConfig.RebroadcastMode"
|
26
|
+
optional :node_info_broadcast_secs, :uint32, 7
|
27
|
+
optional :double_tap_as_button_press, :bool, 8
|
28
|
+
optional :is_managed, :bool, 9
|
29
|
+
optional :disable_triple_click, :bool, 10
|
30
|
+
optional :tzdef, :string, 11
|
31
|
+
optional :led_heartbeat_disabled, :bool, 12
|
32
|
+
end
|
33
|
+
add_enum "meshtastic.Config.DeviceConfig.Role" do
|
34
|
+
value :CLIENT, 0
|
35
|
+
value :CLIENT_MUTE, 1
|
36
|
+
value :ROUTER, 2
|
37
|
+
value :ROUTER_CLIENT, 3
|
38
|
+
value :REPEATER, 4
|
39
|
+
value :TRACKER, 5
|
40
|
+
value :SENSOR, 6
|
41
|
+
value :TAK, 7
|
42
|
+
value :CLIENT_HIDDEN, 8
|
43
|
+
value :LOST_AND_FOUND, 9
|
44
|
+
value :TAK_TRACKER, 10
|
45
|
+
end
|
46
|
+
add_enum "meshtastic.Config.DeviceConfig.RebroadcastMode" do
|
47
|
+
value :ALL, 0
|
48
|
+
value :ALL_SKIP_DECODING, 1
|
49
|
+
value :LOCAL_ONLY, 2
|
50
|
+
value :KNOWN_ONLY, 3
|
51
|
+
end
|
52
|
+
add_message "meshtastic.Config.PositionConfig" do
|
53
|
+
optional :position_broadcast_secs, :uint32, 1
|
54
|
+
optional :position_broadcast_smart_enabled, :bool, 2
|
55
|
+
optional :fixed_position, :bool, 3
|
56
|
+
optional :gps_enabled, :bool, 4
|
57
|
+
optional :gps_update_interval, :uint32, 5
|
58
|
+
optional :gps_attempt_time, :uint32, 6
|
59
|
+
optional :position_flags, :uint32, 7
|
60
|
+
optional :rx_gpio, :uint32, 8
|
61
|
+
optional :tx_gpio, :uint32, 9
|
62
|
+
optional :broadcast_smart_minimum_distance, :uint32, 10
|
63
|
+
optional :broadcast_smart_minimum_interval_secs, :uint32, 11
|
64
|
+
optional :gps_en_gpio, :uint32, 12
|
65
|
+
optional :gps_mode, :enum, 13, "meshtastic.Config.PositionConfig.GpsMode"
|
66
|
+
end
|
67
|
+
add_enum "meshtastic.Config.PositionConfig.PositionFlags" do
|
68
|
+
value :UNSET, 0
|
69
|
+
value :ALTITUDE, 1
|
70
|
+
value :ALTITUDE_MSL, 2
|
71
|
+
value :GEOIDAL_SEPARATION, 4
|
72
|
+
value :DOP, 8
|
73
|
+
value :HVDOP, 16
|
74
|
+
value :SATINVIEW, 32
|
75
|
+
value :SEQ_NO, 64
|
76
|
+
value :TIMESTAMP, 128
|
77
|
+
value :HEADING, 256
|
78
|
+
value :SPEED, 512
|
79
|
+
end
|
80
|
+
add_enum "meshtastic.Config.PositionConfig.GpsMode" do
|
81
|
+
value :DISABLED, 0
|
82
|
+
value :ENABLED, 1
|
83
|
+
value :NOT_PRESENT, 2
|
84
|
+
end
|
85
|
+
add_message "meshtastic.Config.PowerConfig" do
|
86
|
+
optional :is_power_saving, :bool, 1
|
87
|
+
optional :on_battery_shutdown_after_secs, :uint32, 2
|
88
|
+
optional :adc_multiplier_override, :float, 3
|
89
|
+
optional :wait_bluetooth_secs, :uint32, 4
|
90
|
+
optional :sds_secs, :uint32, 6
|
91
|
+
optional :ls_secs, :uint32, 7
|
92
|
+
optional :min_wake_secs, :uint32, 8
|
93
|
+
optional :device_battery_ina_address, :uint32, 9
|
94
|
+
end
|
95
|
+
add_message "meshtastic.Config.NetworkConfig" do
|
96
|
+
optional :wifi_enabled, :bool, 1
|
97
|
+
optional :wifi_ssid, :string, 3
|
98
|
+
optional :wifi_psk, :string, 4
|
99
|
+
optional :ntp_server, :string, 5
|
100
|
+
optional :eth_enabled, :bool, 6
|
101
|
+
optional :address_mode, :enum, 7, "meshtastic.Config.NetworkConfig.AddressMode"
|
102
|
+
optional :ipv4_config, :message, 8, "meshtastic.Config.NetworkConfig.IpV4Config"
|
103
|
+
optional :rsyslog_server, :string, 9
|
104
|
+
end
|
105
|
+
add_message "meshtastic.Config.NetworkConfig.IpV4Config" do
|
106
|
+
optional :ip, :fixed32, 1
|
107
|
+
optional :gateway, :fixed32, 2
|
108
|
+
optional :subnet, :fixed32, 3
|
109
|
+
optional :dns, :fixed32, 4
|
110
|
+
end
|
111
|
+
add_enum "meshtastic.Config.NetworkConfig.AddressMode" do
|
112
|
+
value :DHCP, 0
|
113
|
+
value :STATIC, 1
|
114
|
+
end
|
115
|
+
add_message "meshtastic.Config.DisplayConfig" do
|
116
|
+
optional :screen_on_secs, :uint32, 1
|
117
|
+
optional :gps_format, :enum, 2, "meshtastic.Config.DisplayConfig.GpsCoordinateFormat"
|
118
|
+
optional :auto_screen_carousel_secs, :uint32, 3
|
119
|
+
optional :compass_north_top, :bool, 4
|
120
|
+
optional :flip_screen, :bool, 5
|
121
|
+
optional :units, :enum, 6, "meshtastic.Config.DisplayConfig.DisplayUnits"
|
122
|
+
optional :oled, :enum, 7, "meshtastic.Config.DisplayConfig.OledType"
|
123
|
+
optional :displaymode, :enum, 8, "meshtastic.Config.DisplayConfig.DisplayMode"
|
124
|
+
optional :heading_bold, :bool, 9
|
125
|
+
optional :wake_on_tap_or_motion, :bool, 10
|
126
|
+
end
|
127
|
+
add_enum "meshtastic.Config.DisplayConfig.GpsCoordinateFormat" do
|
128
|
+
value :DEC, 0
|
129
|
+
value :DMS, 1
|
130
|
+
value :UTM, 2
|
131
|
+
value :MGRS, 3
|
132
|
+
value :OLC, 4
|
133
|
+
value :OSGR, 5
|
134
|
+
end
|
135
|
+
add_enum "meshtastic.Config.DisplayConfig.DisplayUnits" do
|
136
|
+
value :METRIC, 0
|
137
|
+
value :IMPERIAL, 1
|
138
|
+
end
|
139
|
+
add_enum "meshtastic.Config.DisplayConfig.OledType" do
|
140
|
+
value :OLED_AUTO, 0
|
141
|
+
value :OLED_SSD1306, 1
|
142
|
+
value :OLED_SH1106, 2
|
143
|
+
value :OLED_SH1107, 3
|
144
|
+
end
|
145
|
+
add_enum "meshtastic.Config.DisplayConfig.DisplayMode" do
|
146
|
+
value :DEFAULT, 0
|
147
|
+
value :TWOCOLOR, 1
|
148
|
+
value :INVERTED, 2
|
149
|
+
value :COLOR, 3
|
150
|
+
end
|
151
|
+
add_message "meshtastic.Config.LoRaConfig" do
|
152
|
+
optional :use_preset, :bool, 1
|
153
|
+
optional :modem_preset, :enum, 2, "meshtastic.Config.LoRaConfig.ModemPreset"
|
154
|
+
optional :bandwidth, :uint32, 3
|
155
|
+
optional :spread_factor, :uint32, 4
|
156
|
+
optional :coding_rate, :uint32, 5
|
157
|
+
optional :frequency_offset, :float, 6
|
158
|
+
optional :region, :enum, 7, "meshtastic.Config.LoRaConfig.RegionCode"
|
159
|
+
optional :hop_limit, :uint32, 8
|
160
|
+
optional :tx_enabled, :bool, 9
|
161
|
+
optional :tx_power, :int32, 10
|
162
|
+
optional :channel_num, :uint32, 11
|
163
|
+
optional :override_duty_cycle, :bool, 12
|
164
|
+
optional :sx126x_rx_boosted_gain, :bool, 13
|
165
|
+
optional :override_frequency, :float, 14
|
166
|
+
repeated :ignore_incoming, :uint32, 103
|
167
|
+
optional :ignore_mqtt, :bool, 104
|
168
|
+
end
|
169
|
+
add_enum "meshtastic.Config.LoRaConfig.RegionCode" do
|
170
|
+
value :UNSET, 0
|
171
|
+
value :US, 1
|
172
|
+
value :EU_433, 2
|
173
|
+
value :EU_868, 3
|
174
|
+
value :CN, 4
|
175
|
+
value :JP, 5
|
176
|
+
value :ANZ, 6
|
177
|
+
value :KR, 7
|
178
|
+
value :TW, 8
|
179
|
+
value :RU, 9
|
180
|
+
value :IN, 10
|
181
|
+
value :NZ_865, 11
|
182
|
+
value :TH, 12
|
183
|
+
value :LORA_24, 13
|
184
|
+
value :UA_433, 14
|
185
|
+
value :UA_868, 15
|
186
|
+
value :MY_433, 16
|
187
|
+
value :MY_919, 17
|
188
|
+
value :SG_923, 18
|
189
|
+
end
|
190
|
+
add_enum "meshtastic.Config.LoRaConfig.ModemPreset" do
|
191
|
+
value :LONG_FAST, 0
|
192
|
+
value :LONG_SLOW, 1
|
193
|
+
value :VERY_LONG_SLOW, 2
|
194
|
+
value :MEDIUM_SLOW, 3
|
195
|
+
value :MEDIUM_FAST, 4
|
196
|
+
value :SHORT_SLOW, 5
|
197
|
+
value :SHORT_FAST, 6
|
198
|
+
value :LONG_MODERATE, 7
|
199
|
+
end
|
200
|
+
add_message "meshtastic.Config.BluetoothConfig" do
|
201
|
+
optional :enabled, :bool, 1
|
202
|
+
optional :mode, :enum, 2, "meshtastic.Config.BluetoothConfig.PairingMode"
|
203
|
+
optional :fixed_pin, :uint32, 3
|
204
|
+
end
|
205
|
+
add_enum "meshtastic.Config.BluetoothConfig.PairingMode" do
|
206
|
+
value :RANDOM_PIN, 0
|
207
|
+
value :FIXED_PIN, 1
|
208
|
+
value :NO_PIN, 2
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
module Meshtastic
|
214
|
+
Config = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config").msgclass
|
215
|
+
Config::DeviceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.DeviceConfig").msgclass
|
216
|
+
Config::DeviceConfig::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.DeviceConfig.Role").enummodule
|
217
|
+
Config::DeviceConfig::RebroadcastMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.DeviceConfig.RebroadcastMode").enummodule
|
218
|
+
Config::PositionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.PositionConfig").msgclass
|
219
|
+
Config::PositionConfig::PositionFlags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.PositionConfig.PositionFlags").enummodule
|
220
|
+
Config::PositionConfig::GpsMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.PositionConfig.GpsMode").enummodule
|
221
|
+
Config::PowerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.PowerConfig").msgclass
|
222
|
+
Config::NetworkConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.NetworkConfig").msgclass
|
223
|
+
Config::NetworkConfig::IpV4Config = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.NetworkConfig.IpV4Config").msgclass
|
224
|
+
Config::NetworkConfig::AddressMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.NetworkConfig.AddressMode").enummodule
|
225
|
+
Config::DisplayConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.DisplayConfig").msgclass
|
226
|
+
Config::DisplayConfig::GpsCoordinateFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.DisplayConfig.GpsCoordinateFormat").enummodule
|
227
|
+
Config::DisplayConfig::DisplayUnits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.DisplayConfig.DisplayUnits").enummodule
|
228
|
+
Config::DisplayConfig::OledType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.DisplayConfig.OledType").enummodule
|
229
|
+
Config::DisplayConfig::DisplayMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.DisplayConfig.DisplayMode").enummodule
|
230
|
+
Config::LoRaConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.LoRaConfig").msgclass
|
231
|
+
Config::LoRaConfig::RegionCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.LoRaConfig.RegionCode").enummodule
|
232
|
+
Config::LoRaConfig::ModemPreset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.LoRaConfig.ModemPreset").enummodule
|
233
|
+
Config::BluetoothConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.BluetoothConfig").msgclass
|
234
|
+
Config::BluetoothConfig::PairingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.Config.BluetoothConfig.PairingMode").enummodule
|
235
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/connection_status.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("meshtastic/connection_status.proto", :syntax => :proto3) do
|
8
|
+
add_message "meshtastic.DeviceConnectionStatus" do
|
9
|
+
proto3_optional :wifi, :message, 1, "meshtastic.WifiConnectionStatus"
|
10
|
+
proto3_optional :ethernet, :message, 2, "meshtastic.EthernetConnectionStatus"
|
11
|
+
proto3_optional :bluetooth, :message, 3, "meshtastic.BluetoothConnectionStatus"
|
12
|
+
proto3_optional :serial, :message, 4, "meshtastic.SerialConnectionStatus"
|
13
|
+
end
|
14
|
+
add_message "meshtastic.WifiConnectionStatus" do
|
15
|
+
optional :status, :message, 1, "meshtastic.NetworkConnectionStatus"
|
16
|
+
optional :ssid, :string, 2
|
17
|
+
optional :rssi, :int32, 3
|
18
|
+
end
|
19
|
+
add_message "meshtastic.EthernetConnectionStatus" do
|
20
|
+
optional :status, :message, 1, "meshtastic.NetworkConnectionStatus"
|
21
|
+
end
|
22
|
+
add_message "meshtastic.NetworkConnectionStatus" do
|
23
|
+
optional :ip_address, :fixed32, 1
|
24
|
+
optional :is_connected, :bool, 2
|
25
|
+
optional :is_mqtt_connected, :bool, 3
|
26
|
+
optional :is_syslog_connected, :bool, 4
|
27
|
+
end
|
28
|
+
add_message "meshtastic.BluetoothConnectionStatus" do
|
29
|
+
optional :pin, :uint32, 1
|
30
|
+
optional :rssi, :int32, 2
|
31
|
+
optional :is_connected, :bool, 3
|
32
|
+
end
|
33
|
+
add_message "meshtastic.SerialConnectionStatus" do
|
34
|
+
optional :baud, :uint32, 1
|
35
|
+
optional :is_connected, :bool, 2
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
module Meshtastic
|
41
|
+
DeviceConnectionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.DeviceConnectionStatus").msgclass
|
42
|
+
WifiConnectionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.WifiConnectionStatus").msgclass
|
43
|
+
EthernetConnectionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.EthernetConnectionStatus").msgclass
|
44
|
+
NetworkConnectionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.NetworkConnectionStatus").msgclass
|
45
|
+
BluetoothConnectionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.BluetoothConnectionStatus").msgclass
|
46
|
+
SerialConnectionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.SerialConnectionStatus").msgclass
|
47
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/deviceonly.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'meshtastic/channel_pb'
|
7
|
+
require 'meshtastic/localonly_pb'
|
8
|
+
require 'meshtastic/mesh_pb'
|
9
|
+
require 'meshtastic/module_config_pb'
|
10
|
+
require 'meshtastic/telemetry_pb'
|
11
|
+
require 'nanopb_pb'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("meshtastic/deviceonly.proto", :syntax => :proto3) do
|
15
|
+
add_message "meshtastic.PositionLite" do
|
16
|
+
optional :latitude_i, :sfixed32, 1
|
17
|
+
optional :longitude_i, :sfixed32, 2
|
18
|
+
optional :altitude, :int32, 3
|
19
|
+
optional :time, :fixed32, 4
|
20
|
+
optional :location_source, :enum, 5, "meshtastic.Position.LocSource"
|
21
|
+
end
|
22
|
+
add_message "meshtastic.NodeInfoLite" do
|
23
|
+
optional :num, :uint32, 1
|
24
|
+
optional :user, :message, 2, "meshtastic.User"
|
25
|
+
optional :position, :message, 3, "meshtastic.PositionLite"
|
26
|
+
optional :snr, :float, 4
|
27
|
+
optional :last_heard, :fixed32, 5
|
28
|
+
optional :device_metrics, :message, 6, "meshtastic.DeviceMetrics"
|
29
|
+
optional :channel, :uint32, 7
|
30
|
+
optional :via_mqtt, :bool, 8
|
31
|
+
optional :hops_away, :uint32, 9
|
32
|
+
optional :is_favorite, :bool, 10
|
33
|
+
end
|
34
|
+
add_message "meshtastic.DeviceState" do
|
35
|
+
optional :my_node, :message, 2, "meshtastic.MyNodeInfo"
|
36
|
+
optional :owner, :message, 3, "meshtastic.User"
|
37
|
+
repeated :receive_queue, :message, 5, "meshtastic.MeshPacket"
|
38
|
+
optional :version, :uint32, 8
|
39
|
+
optional :rx_text_message, :message, 7, "meshtastic.MeshPacket"
|
40
|
+
optional :no_save, :bool, 9
|
41
|
+
optional :did_gps_reset, :bool, 11
|
42
|
+
optional :rx_waypoint, :message, 12, "meshtastic.MeshPacket"
|
43
|
+
repeated :node_remote_hardware_pins, :message, 13, "meshtastic.NodeRemoteHardwarePin"
|
44
|
+
repeated :node_db_lite, :message, 14, "meshtastic.NodeInfoLite"
|
45
|
+
end
|
46
|
+
add_message "meshtastic.ChannelFile" do
|
47
|
+
repeated :channels, :message, 1, "meshtastic.Channel"
|
48
|
+
optional :version, :uint32, 2
|
49
|
+
end
|
50
|
+
add_message "meshtastic.OEMStore" do
|
51
|
+
optional :oem_icon_width, :uint32, 1
|
52
|
+
optional :oem_icon_height, :uint32, 2
|
53
|
+
optional :oem_icon_bits, :bytes, 3
|
54
|
+
optional :oem_font, :enum, 4, "meshtastic.ScreenFonts"
|
55
|
+
optional :oem_text, :string, 5
|
56
|
+
optional :oem_aes_key, :bytes, 6
|
57
|
+
optional :oem_local_config, :message, 7, "meshtastic.LocalConfig"
|
58
|
+
optional :oem_local_module_config, :message, 8, "meshtastic.LocalModuleConfig"
|
59
|
+
end
|
60
|
+
add_enum "meshtastic.ScreenFonts" do
|
61
|
+
value :FONT_SMALL, 0
|
62
|
+
value :FONT_MEDIUM, 1
|
63
|
+
value :FONT_LARGE, 2
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
module Meshtastic
|
69
|
+
PositionLite = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.PositionLite").msgclass
|
70
|
+
NodeInfoLite = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.NodeInfoLite").msgclass
|
71
|
+
DeviceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.DeviceState").msgclass
|
72
|
+
ChannelFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.ChannelFile").msgclass
|
73
|
+
OEMStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.OEMStore").msgclass
|
74
|
+
ScreenFonts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.ScreenFonts").enummodule
|
75
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: meshtastic/localonly.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'meshtastic/config_pb'
|
7
|
+
require 'meshtastic/module_config_pb'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("meshtastic/localonly.proto", :syntax => :proto3) do
|
11
|
+
add_message "meshtastic.LocalConfig" do
|
12
|
+
optional :device, :message, 1, "meshtastic.Config.DeviceConfig"
|
13
|
+
optional :position, :message, 2, "meshtastic.Config.PositionConfig"
|
14
|
+
optional :power, :message, 3, "meshtastic.Config.PowerConfig"
|
15
|
+
optional :network, :message, 4, "meshtastic.Config.NetworkConfig"
|
16
|
+
optional :display, :message, 5, "meshtastic.Config.DisplayConfig"
|
17
|
+
optional :lora, :message, 6, "meshtastic.Config.LoRaConfig"
|
18
|
+
optional :bluetooth, :message, 7, "meshtastic.Config.BluetoothConfig"
|
19
|
+
optional :version, :uint32, 8
|
20
|
+
end
|
21
|
+
add_message "meshtastic.LocalModuleConfig" do
|
22
|
+
optional :mqtt, :message, 1, "meshtastic.ModuleConfig.MQTTConfig"
|
23
|
+
optional :serial, :message, 2, "meshtastic.ModuleConfig.SerialConfig"
|
24
|
+
optional :external_notification, :message, 3, "meshtastic.ModuleConfig.ExternalNotificationConfig"
|
25
|
+
optional :store_forward, :message, 4, "meshtastic.ModuleConfig.StoreForwardConfig"
|
26
|
+
optional :range_test, :message, 5, "meshtastic.ModuleConfig.RangeTestConfig"
|
27
|
+
optional :telemetry, :message, 6, "meshtastic.ModuleConfig.TelemetryConfig"
|
28
|
+
optional :canned_message, :message, 7, "meshtastic.ModuleConfig.CannedMessageConfig"
|
29
|
+
optional :audio, :message, 9, "meshtastic.ModuleConfig.AudioConfig"
|
30
|
+
optional :remote_hardware, :message, 10, "meshtastic.ModuleConfig.RemoteHardwareConfig"
|
31
|
+
optional :neighbor_info, :message, 11, "meshtastic.ModuleConfig.NeighborInfoConfig"
|
32
|
+
optional :ambient_lighting, :message, 12, "meshtastic.ModuleConfig.AmbientLightingConfig"
|
33
|
+
optional :detection_sensor, :message, 13, "meshtastic.ModuleConfig.DetectionSensorConfig"
|
34
|
+
optional :paxcounter, :message, 14, "meshtastic.ModuleConfig.PaxcounterConfig"
|
35
|
+
optional :version, :uint32, 8
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
module Meshtastic
|
41
|
+
LocalConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.LocalConfig").msgclass
|
42
|
+
LocalModuleConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.LocalModuleConfig").msgclass
|
43
|
+
end
|