mirror of
https://github.com/meshtastic/python.git
synced 2026-01-07 23:37:53 -05:00
didn't mean to check in built protobufs
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: meshtastic/powermon.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19meshtastic/powermon.proto\x12\x13meshtastic.PowerMon\"\'\n\x05\x45vent\x12\x13\n\x06states\x18\x01 \x01(\x04H\x00\x88\x01\x01\x42\t\n\x07_states*\xfb\x01\n\x05State\x12\x08\n\x04None\x10\x00\x12\x11\n\rCPU_DeepSleep\x10\x01\x12\r\n\tCPU_Sleep\x10\x02\x12\r\n\tCPU_Awake\x10\x04\x12\r\n\tLora_RXOn\x10\x08\x12\r\n\tLora_TXOn\x10\x10\x12\x11\n\rLora_RXActive\x10 \x12\t\n\x05\x42T_On\x10@\x12\x0b\n\x06LED_On\x10\x80\x01\x12\x0e\n\tScreen_On\x10\x80\x02\x12\x13\n\x0eScreen_Drawing\x10\x80\x04\x12\x0c\n\x07Wifi_On\x10\x80\x08\x12\x11\n\x0cGPS_LowPower\x10\x80\x10\x12\x14\n\x0fGPS_MediumPower\x10\x80 \x12\x12\n\rGPS_HighPower\x10\x80@Bc\n\x13\x63om.geeksville.meshB\x0ePowerMonProtosZ\"github.com/meshtastic/go/generated\xaa\x02\x14Meshtastic.Protobufs\xba\x02\x00\x62\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtastic.powermon_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\023com.geeksville.meshB\016PowerMonProtosZ\"github.com/meshtastic/go/generated\252\002\024Meshtastic.Protobufs\272\002\000'
|
||||
_globals['_STATE']._serialized_start=92
|
||||
_globals['_STATE']._serialized_end=343
|
||||
_globals['_EVENT']._serialized_start=50
|
||||
_globals['_EVENT']._serialized_end=89
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -1,84 +0,0 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
|
||||
import builtins
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.enum_type_wrapper
|
||||
import google.protobuf.message
|
||||
import sys
|
||||
import typing
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
class _State:
|
||||
ValueType = typing.NewType("ValueType", builtins.int)
|
||||
V: typing_extensions.TypeAlias = ValueType
|
||||
|
||||
class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_State.ValueType], builtins.type):
|
||||
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
||||
CPU_DeepSleep: _State.ValueType # 1
|
||||
CPU_Sleep: _State.ValueType # 2
|
||||
CPU_Awake: _State.ValueType # 4
|
||||
Lora_RXOn: _State.ValueType # 8
|
||||
Lora_TXOn: _State.ValueType # 16
|
||||
Lora_RXActive: _State.ValueType # 32
|
||||
BT_On: _State.ValueType # 64
|
||||
LED_On: _State.ValueType # 128
|
||||
Screen_On: _State.ValueType # 256
|
||||
Screen_Drawing: _State.ValueType # 512
|
||||
Wifi_On: _State.ValueType # 1024
|
||||
GPS_LowPower: _State.ValueType # 2048
|
||||
GPS_MediumPower: _State.ValueType # 4096
|
||||
GPS_HighPower: _State.ValueType # 8192
|
||||
|
||||
class State(_State, metaclass=_StateEnumTypeWrapper):
|
||||
"""Any significant power changing event in meshtastic should be tagged with a powermon state transition.
|
||||
If you are making new meshtastic features feel free to add new entries at the end of this definition.
|
||||
"""
|
||||
|
||||
CPU_DeepSleep: State.ValueType # 1
|
||||
CPU_Sleep: State.ValueType # 2
|
||||
CPU_Awake: State.ValueType # 4
|
||||
Lora_RXOn: State.ValueType # 8
|
||||
Lora_TXOn: State.ValueType # 16
|
||||
Lora_RXActive: State.ValueType # 32
|
||||
BT_On: State.ValueType # 64
|
||||
LED_On: State.ValueType # 128
|
||||
Screen_On: State.ValueType # 256
|
||||
Screen_Drawing: State.ValueType # 512
|
||||
Wifi_On: State.ValueType # 1024
|
||||
GPS_LowPower: State.ValueType # 2048
|
||||
GPS_MediumPower: State.ValueType # 4096
|
||||
GPS_HighPower: State.ValueType # 8192
|
||||
global___State = State
|
||||
|
||||
@typing.final
|
||||
class Event(google.protobuf.message.Message):
|
||||
"""
|
||||
the log messages will be short and complete (see PowerMon.Event in the protobufs for details).
|
||||
something like "PwrMon,C,0x00001234,REASON" where the hex number is the bitmask of all current states.
|
||||
(We use a bitmask for states so that if a log message gets lost it won't be fatal)
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
STATES_FIELD_NUMBER: builtins.int
|
||||
states: builtins.int
|
||||
"""Bitwise-OR of States"""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
states: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing.Literal["_states", b"_states", "states", b"states"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.Literal["_states", b"_states", "states", b"states"]) -> None: ...
|
||||
def WhichOneof(self, oneof_group: typing.Literal["_states", b"_states"]) -> typing.Literal["states"] | None: ...
|
||||
|
||||
global___Event = Event
|
||||
Reference in New Issue
Block a user