Skip to content

Commit

Permalink
protobufs: v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Aug 22, 2024
1 parent a8d86de commit d57186d
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 49 deletions.
22 changes: 11 additions & 11 deletions meshtastic/protobuf/config_pb2.py

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion meshtastic/protobuf/config_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,7 @@ class Config(google.protobuf.message.Message):
OVERRIDE_DUTY_CYCLE_FIELD_NUMBER: builtins.int
SX126X_RX_BOOSTED_GAIN_FIELD_NUMBER: builtins.int
OVERRIDE_FREQUENCY_FIELD_NUMBER: builtins.int
PA_FAN_DISABLED_FIELD_NUMBER: builtins.int
IGNORE_INCOMING_FIELD_NUMBER: builtins.int
IGNORE_MQTT_FIELD_NUMBER: builtins.int
use_preset: builtins.bool
Expand Down Expand Up @@ -1465,6 +1466,10 @@ class Config(google.protobuf.message.Message):
Please respect your local laws and regulations. If you are a HAM, make sure you
enable HAM mode and turn off encryption.
"""
pa_fan_disabled: builtins.bool
"""
If true, disable the build-in PA FAN using pin define in RF95_FAN_EN.
"""
ignore_mqtt: builtins.bool
"""
If true, the device will not process any packets received via LoRa that passed via MQTT anywhere on the path towards it.
Expand Down Expand Up @@ -1494,10 +1499,11 @@ class Config(google.protobuf.message.Message):
override_duty_cycle: builtins.bool = ...,
sx126x_rx_boosted_gain: builtins.bool = ...,
override_frequency: builtins.float = ...,
pa_fan_disabled: builtins.bool = ...,
ignore_incoming: collections.abc.Iterable[builtins.int] | None = ...,
ignore_mqtt: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["bandwidth", b"bandwidth", "channel_num", b"channel_num", "coding_rate", b"coding_rate", "frequency_offset", b"frequency_offset", "hop_limit", b"hop_limit", "ignore_incoming", b"ignore_incoming", "ignore_mqtt", b"ignore_mqtt", "modem_preset", b"modem_preset", "override_duty_cycle", b"override_duty_cycle", "override_frequency", b"override_frequency", "region", b"region", "spread_factor", b"spread_factor", "sx126x_rx_boosted_gain", b"sx126x_rx_boosted_gain", "tx_enabled", b"tx_enabled", "tx_power", b"tx_power", "use_preset", b"use_preset"]) -> None: ...
def ClearField(self, field_name: typing.Literal["bandwidth", b"bandwidth", "channel_num", b"channel_num", "coding_rate", b"coding_rate", "frequency_offset", b"frequency_offset", "hop_limit", b"hop_limit", "ignore_incoming", b"ignore_incoming", "ignore_mqtt", b"ignore_mqtt", "modem_preset", b"modem_preset", "override_duty_cycle", b"override_duty_cycle", "override_frequency", b"override_frequency", "pa_fan_disabled", b"pa_fan_disabled", "region", b"region", "spread_factor", b"spread_factor", "sx126x_rx_boosted_gain", b"sx126x_rx_boosted_gain", "tx_enabled", b"tx_enabled", "tx_power", b"tx_power", "use_preset", b"use_preset"]) -> None: ...

@typing.final
class BluetoothConfig(google.protobuf.message.Message):
Expand Down
44 changes: 22 additions & 22 deletions meshtastic/protobuf/module_config_pb2.py

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion meshtastic/protobuf/module_config_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ class ModuleConfig(google.protobuf.message.Message):
NMEA: ModuleConfig.SerialConfig._Serial_Mode.ValueType # 4
CALTOPO: ModuleConfig.SerialConfig._Serial_Mode.ValueType # 5
"""NMEA messages specifically tailored for CalTopo"""
WS85: ModuleConfig.SerialConfig._Serial_Mode.ValueType # 6
"""Ecowitt WS85 weather station"""

class Serial_Mode(_Serial_Mode, metaclass=_Serial_ModeEnumTypeWrapper):
"""
Expand All @@ -516,6 +518,8 @@ class ModuleConfig(google.protobuf.message.Message):
NMEA: ModuleConfig.SerialConfig.Serial_Mode.ValueType # 4
CALTOPO: ModuleConfig.SerialConfig.Serial_Mode.ValueType # 5
"""NMEA messages specifically tailored for CalTopo"""
WS85: ModuleConfig.SerialConfig.Serial_Mode.ValueType # 6
"""Ecowitt WS85 weather station"""

ENABLED_FIELD_NUMBER: builtins.int
ECHO_FIELD_NUMBER: builtins.int
Expand Down Expand Up @@ -701,6 +705,7 @@ class ModuleConfig(google.protobuf.message.Message):
RECORDS_FIELD_NUMBER: builtins.int
HISTORY_RETURN_MAX_FIELD_NUMBER: builtins.int
HISTORY_RETURN_WINDOW_FIELD_NUMBER: builtins.int
IS_SERVER_FIELD_NUMBER: builtins.int
enabled: builtins.bool
"""
Enable the Store and Forward Module
Expand All @@ -721,6 +726,10 @@ class ModuleConfig(google.protobuf.message.Message):
"""
TODO: REPLACE
"""
is_server: builtins.bool
"""
Set to true to let this node act as a server that stores received messages and resends them upon request.
"""
def __init__(
self,
*,
Expand All @@ -729,8 +738,9 @@ class ModuleConfig(google.protobuf.message.Message):
records: builtins.int = ...,
history_return_max: builtins.int = ...,
history_return_window: builtins.int = ...,
is_server: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "heartbeat", b"heartbeat", "history_return_max", b"history_return_max", "history_return_window", b"history_return_window", "records", b"records"]) -> None: ...
def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "heartbeat", b"heartbeat", "history_return_max", b"history_return_max", "history_return_window", b"history_return_window", "is_server", b"is_server", "records", b"records"]) -> None: ...

@typing.final
class RangeTestConfig(google.protobuf.message.Message):
Expand Down
24 changes: 12 additions & 12 deletions meshtastic/protobuf/telemetry_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion meshtastic/protobuf/telemetry_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ class EnvironmentMetrics(google.protobuf.message.Message):
WIND_DIRECTION_FIELD_NUMBER: builtins.int
WIND_SPEED_FIELD_NUMBER: builtins.int
WEIGHT_FIELD_NUMBER: builtins.int
WIND_GUST_FIELD_NUMBER: builtins.int
WIND_LULL_FIELD_NUMBER: builtins.int
temperature: builtins.float
"""
Temperature measured
Expand Down Expand Up @@ -370,6 +372,14 @@ class EnvironmentMetrics(google.protobuf.message.Message):
"""
Weight in KG
"""
wind_gust: builtins.float
"""
Wind gust in m/s
"""
wind_lull: builtins.float
"""
Wind lull in m/s
"""
def __init__(
self,
*,
Expand All @@ -388,8 +398,10 @@ class EnvironmentMetrics(google.protobuf.message.Message):
wind_direction: builtins.int = ...,
wind_speed: builtins.float = ...,
weight: builtins.float = ...,
wind_gust: builtins.float = ...,
wind_lull: builtins.float = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["barometric_pressure", b"barometric_pressure", "current", b"current", "distance", b"distance", "gas_resistance", b"gas_resistance", "iaq", b"iaq", "ir_lux", b"ir_lux", "lux", b"lux", "relative_humidity", b"relative_humidity", "temperature", b"temperature", "uv_lux", b"uv_lux", "voltage", b"voltage", "weight", b"weight", "white_lux", b"white_lux", "wind_direction", b"wind_direction", "wind_speed", b"wind_speed"]) -> None: ...
def ClearField(self, field_name: typing.Literal["barometric_pressure", b"barometric_pressure", "current", b"current", "distance", b"distance", "gas_resistance", b"gas_resistance", "iaq", b"iaq", "ir_lux", b"ir_lux", "lux", b"lux", "relative_humidity", b"relative_humidity", "temperature", b"temperature", "uv_lux", b"uv_lux", "voltage", b"voltage", "weight", b"weight", "white_lux", b"white_lux", "wind_direction", b"wind_direction", "wind_gust", b"wind_gust", "wind_lull", b"wind_lull", "wind_speed", b"wind_speed"]) -> None: ...

global___EnvironmentMetrics = EnvironmentMetrics

Expand Down
2 changes: 1 addition & 1 deletion protobufs

0 comments on commit d57186d

Please sign in to comment.