Module meshtastic.config_pb2
Generated protocol buffer code.
Expand source code
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: config.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 message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x63onfig.proto\"\xa0\x13\n\x06\x43onfig\x12&\n\x06\x64\x65vice\x18\x01 \x01(\x0b\x32\x14.Config.DeviceConfigH\x00\x12*\n\x08position\x18\x02 \x01(\x0b\x32\x16.Config.PositionConfigH\x00\x12$\n\x05power\x18\x03 \x01(\x0b\x32\x13.Config.PowerConfigH\x00\x12(\n\x07network\x18\x04 \x01(\x0b\x32\x15.Config.NetworkConfigH\x00\x12(\n\x07\x64isplay\x18\x05 \x01(\x0b\x32\x15.Config.DisplayConfigH\x00\x12\"\n\x04lora\x18\x06 \x01(\x0b\x32\x12.Config.LoRaConfigH\x00\x12,\n\tbluetooth\x18\x07 \x01(\x0b\x32\x17.Config.BluetoothConfigH\x00\x1a\xae\x01\n\x0c\x44\x65viceConfig\x12\'\n\x04role\x18\x01 \x01(\x0e\x32\x19.Config.DeviceConfig.Role\x12\x16\n\x0eserial_enabled\x18\x02 \x01(\x08\x12\x19\n\x11\x64\x65\x62ug_log_enabled\x18\x03 \x01(\x08\"B\n\x04Role\x12\n\n\x06\x43LIENT\x10\x00\x12\x0f\n\x0b\x43LIENT_MUTE\x10\x01\x12\n\n\x06ROUTER\x10\x02\x12\x11\n\rROUTER_CLIENT\x10\x03\x1a\x85\x03\n\x0ePositionConfig\x12\x1f\n\x17position_broadcast_secs\x18\x01 \x01(\r\x12(\n position_broadcast_smart_enabled\x18\x02 \x01(\x08\x12\x16\n\x0e\x66ixed_position\x18\x03 \x01(\x08\x12\x13\n\x0bgps_enabled\x18\x04 \x01(\x08\x12\x1b\n\x13gps_update_interval\x18\x05 \x01(\r\x12\x18\n\x10gps_attempt_time\x18\x06 \x01(\r\x12\x16\n\x0eposition_flags\x18\x07 \x01(\r\"\xab\x01\n\rPositionFlags\x12\t\n\x05UNSET\x10\x00\x12\x0c\n\x08\x41LTITUDE\x10\x01\x12\x10\n\x0c\x41LTITUDE_MSL\x10\x02\x12\x16\n\x12GEOIDAL_SEPARATION\x10\x04\x12\x07\n\x03\x44OP\x10\x08\x12\t\n\x05HVDOP\x10\x10\x12\r\n\tSATINVIEW\x10 \x12\n\n\x06SEQ_NO\x10@\x12\x0e\n\tTIMESTAMP\x10\x80\x01\x12\x0c\n\x07HEADING\x10\x80\x02\x12\n\n\x05SPEED\x10\x80\x04\x1a\xe5\x01\n\x0bPowerConfig\x12\x17\n\x0fis_power_saving\x18\x01 \x01(\x08\x12&\n\x1eon_battery_shutdown_after_secs\x18\x02 \x01(\r\x12\x1f\n\x17\x61\x64\x63_multiplier_override\x18\x03 \x01(\x02\x12\x1b\n\x13wait_bluetooth_secs\x18\x04 \x01(\r\x12\x1d\n\x15mesh_sds_timeout_secs\x18\x05 \x01(\r\x12\x10\n\x08sds_secs\x18\x06 \x01(\r\x12\x0f\n\x07ls_secs\x18\x07 \x01(\r\x12\x15\n\rmin_wake_secs\x18\x08 \x01(\r\x1a\xd4\x01\n\rNetworkConfig\x12\x14\n\x0cwifi_enabled\x18\x01 \x01(\x08\x12\x31\n\twifi_mode\x18\x02 \x01(\x0e\x32\x1e.Config.NetworkConfig.WiFiMode\x12\x11\n\twifi_ssid\x18\x03 \x01(\t\x12\x10\n\x08wifi_psk\x18\x04 \x01(\t\x12\x12\n\nntp_server\x18\x05 \x01(\t\"A\n\x08WiFiMode\x12\n\n\x06\x43LIENT\x10\x00\x12\x10\n\x0c\x41\x43\x43\x45SS_POINT\x10\x01\x12\x17\n\x13\x41\x43\x43\x45SS_POINT_HIDDEN\x10\x02\x1a\xe5\x02\n\rDisplayConfig\x12\x16\n\x0escreen_on_secs\x18\x01 \x01(\r\x12=\n\ngps_format\x18\x02 \x01(\x0e\x32).Config.DisplayConfig.GpsCoordinateFormat\x12!\n\x19\x61uto_screen_carousel_secs\x18\x03 \x01(\r\x12\x19\n\x11\x63ompass_north_top\x18\x04 \x01(\x08\x12\x13\n\x0b\x66lip_screen\x18\x05 \x01(\x08\x12\x31\n\x05units\x18\x06 \x01(\x0e\x32\".Config.DisplayConfig.DisplayUnits\"M\n\x13GpsCoordinateFormat\x12\x07\n\x03\x44\x45\x43\x10\x00\x12\x07\n\x03\x44MS\x10\x01\x12\x07\n\x03UTM\x10\x02\x12\x08\n\x04MGRS\x10\x03\x12\x07\n\x03OLC\x10\x04\x12\x08\n\x04OSGR\x10\x05\"(\n\x0c\x44isplayUnits\x12\n\n\x06METRIC\x10\x00\x12\x0c\n\x08IMPERIAL\x10\x01\x1a\xdd\x04\n\nLoRaConfig\x12\x12\n\nuse_preset\x18\x01 \x01(\x08\x12\x34\n\x0cmodem_preset\x18\x02 \x01(\x0e\x32\x1e.Config.LoRaConfig.ModemPreset\x12\x11\n\tbandwidth\x18\x03 \x01(\r\x12\x15\n\rspread_factor\x18\x04 \x01(\r\x12\x13\n\x0b\x63oding_rate\x18\x05 \x01(\r\x12\x18\n\x10\x66requency_offset\x18\x06 \x01(\x02\x12-\n\x06region\x18\x07 \x01(\x0e\x32\x1d.Config.LoRaConfig.RegionCode\x12\x11\n\thop_limit\x18\x08 \x01(\r\x12\x12\n\ntx_enabled\x18\t \x01(\x08\x12\x10\n\x08tx_power\x18\n \x01(\x05\x12\x13\n\x0b\x63hannel_num\x18\x0b \x01(\r\x12\x17\n\x0fignore_incoming\x18g \x03(\r\"\x91\x01\n\nRegionCode\x12\t\n\x05UNSET\x10\x00\x12\x06\n\x02US\x10\x01\x12\n\n\x06\x45U_433\x10\x02\x12\n\n\x06\x45U_868\x10\x03\x12\x06\n\x02\x43N\x10\x04\x12\x06\n\x02JP\x10\x05\x12\x07\n\x03\x41NZ\x10\x06\x12\x06\n\x02KR\x10\x07\x12\x06\n\x02TW\x10\x08\x12\x06\n\x02RU\x10\t\x12\x06\n\x02IN\x10\n\x12\n\n\x06NZ_865\x10\x0b\x12\x06\n\x02TH\x10\x0c\x12\x0b\n\x07LORA_24\x10\r\"\x81\x01\n\x0bModemPreset\x12\r\n\tLONG_FAST\x10\x00\x12\r\n\tLONG_SLOW\x10\x01\x12\x12\n\x0eVERY_LONG_SLOW\x10\x02\x12\x0f\n\x0bMEDIUM_SLOW\x10\x03\x12\x0f\n\x0bMEDIUM_FAST\x10\x04\x12\x0e\n\nSHORT_SLOW\x10\x05\x12\x0e\n\nSHORT_FAST\x10\x06\x1a\xa2\x01\n\x0f\x42luetoothConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x31\n\x04mode\x18\x02 \x01(\x0e\x32#.Config.BluetoothConfig.PairingMode\x12\x11\n\tfixed_pin\x18\x03 \x01(\r\"8\n\x0bPairingMode\x12\x0e\n\nRANDOM_PIN\x10\x00\x12\r\n\tFIXED_PIN\x10\x01\x12\n\n\x06NO_PIN\x10\x02\x42\x11\n\x0fpayload_variantBH\n\x13\x63om.geeksville.meshB\x0c\x43onfigProtosH\x03Z!github.com/meshtastic/gomeshprotob\x06proto3')
_CONFIG = DESCRIPTOR.message_types_by_name['Config']
_CONFIG_DEVICECONFIG = _CONFIG.nested_types_by_name['DeviceConfig']
_CONFIG_POSITIONCONFIG = _CONFIG.nested_types_by_name['PositionConfig']
_CONFIG_POWERCONFIG = _CONFIG.nested_types_by_name['PowerConfig']
_CONFIG_NETWORKCONFIG = _CONFIG.nested_types_by_name['NetworkConfig']
_CONFIG_DISPLAYCONFIG = _CONFIG.nested_types_by_name['DisplayConfig']
_CONFIG_LORACONFIG = _CONFIG.nested_types_by_name['LoRaConfig']
_CONFIG_BLUETOOTHCONFIG = _CONFIG.nested_types_by_name['BluetoothConfig']
_CONFIG_DEVICECONFIG_ROLE = _CONFIG_DEVICECONFIG.enum_types_by_name['Role']
_CONFIG_POSITIONCONFIG_POSITIONFLAGS = _CONFIG_POSITIONCONFIG.enum_types_by_name['PositionFlags']
_CONFIG_NETWORKCONFIG_WIFIMODE = _CONFIG_NETWORKCONFIG.enum_types_by_name['WiFiMode']
_CONFIG_DISPLAYCONFIG_GPSCOORDINATEFORMAT = _CONFIG_DISPLAYCONFIG.enum_types_by_name['GpsCoordinateFormat']
_CONFIG_DISPLAYCONFIG_DISPLAYUNITS = _CONFIG_DISPLAYCONFIG.enum_types_by_name['DisplayUnits']
_CONFIG_LORACONFIG_REGIONCODE = _CONFIG_LORACONFIG.enum_types_by_name['RegionCode']
_CONFIG_LORACONFIG_MODEMPRESET = _CONFIG_LORACONFIG.enum_types_by_name['ModemPreset']
_CONFIG_BLUETOOTHCONFIG_PAIRINGMODE = _CONFIG_BLUETOOTHCONFIG.enum_types_by_name['PairingMode']
Config = _reflection.GeneratedProtocolMessageType('Config', (_message.Message,), {
'DeviceConfig' : _reflection.GeneratedProtocolMessageType('DeviceConfig', (_message.Message,), {
'DESCRIPTOR' : _CONFIG_DEVICECONFIG,
'__module__' : 'config_pb2'
# @@protoc_insertion_point(class_scope:Config.DeviceConfig)
})
,
'PositionConfig' : _reflection.GeneratedProtocolMessageType('PositionConfig', (_message.Message,), {
'DESCRIPTOR' : _CONFIG_POSITIONCONFIG,
'__module__' : 'config_pb2'
# @@protoc_insertion_point(class_scope:Config.PositionConfig)
})
,
'PowerConfig' : _reflection.GeneratedProtocolMessageType('PowerConfig', (_message.Message,), {
'DESCRIPTOR' : _CONFIG_POWERCONFIG,
'__module__' : 'config_pb2'
# @@protoc_insertion_point(class_scope:Config.PowerConfig)
})
,
'NetworkConfig' : _reflection.GeneratedProtocolMessageType('NetworkConfig', (_message.Message,), {
'DESCRIPTOR' : _CONFIG_NETWORKCONFIG,
'__module__' : 'config_pb2'
# @@protoc_insertion_point(class_scope:Config.NetworkConfig)
})
,
'DisplayConfig' : _reflection.GeneratedProtocolMessageType('DisplayConfig', (_message.Message,), {
'DESCRIPTOR' : _CONFIG_DISPLAYCONFIG,
'__module__' : 'config_pb2'
# @@protoc_insertion_point(class_scope:Config.DisplayConfig)
})
,
'LoRaConfig' : _reflection.GeneratedProtocolMessageType('LoRaConfig', (_message.Message,), {
'DESCRIPTOR' : _CONFIG_LORACONFIG,
'__module__' : 'config_pb2'
# @@protoc_insertion_point(class_scope:Config.LoRaConfig)
})
,
'BluetoothConfig' : _reflection.GeneratedProtocolMessageType('BluetoothConfig', (_message.Message,), {
'DESCRIPTOR' : _CONFIG_BLUETOOTHCONFIG,
'__module__' : 'config_pb2'
# @@protoc_insertion_point(class_scope:Config.BluetoothConfig)
})
,
'DESCRIPTOR' : _CONFIG,
'__module__' : 'config_pb2'
# @@protoc_insertion_point(class_scope:Config)
})
_sym_db.RegisterMessage(Config)
_sym_db.RegisterMessage(Config.DeviceConfig)
_sym_db.RegisterMessage(Config.PositionConfig)
_sym_db.RegisterMessage(Config.PowerConfig)
_sym_db.RegisterMessage(Config.NetworkConfig)
_sym_db.RegisterMessage(Config.DisplayConfig)
_sym_db.RegisterMessage(Config.LoRaConfig)
_sym_db.RegisterMessage(Config.BluetoothConfig)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\023com.geeksville.meshB\014ConfigProtosH\003Z!github.com/meshtastic/gomeshproto'
_CONFIG._serialized_start=17
_CONFIG._serialized_end=2481
_CONFIG_DEVICECONFIG._serialized_start=316
_CONFIG_DEVICECONFIG._serialized_end=490
_CONFIG_DEVICECONFIG_ROLE._serialized_start=424
_CONFIG_DEVICECONFIG_ROLE._serialized_end=490
_CONFIG_POSITIONCONFIG._serialized_start=493
_CONFIG_POSITIONCONFIG._serialized_end=882
_CONFIG_POSITIONCONFIG_POSITIONFLAGS._serialized_start=711
_CONFIG_POSITIONCONFIG_POSITIONFLAGS._serialized_end=882
_CONFIG_POWERCONFIG._serialized_start=885
_CONFIG_POWERCONFIG._serialized_end=1114
_CONFIG_NETWORKCONFIG._serialized_start=1117
_CONFIG_NETWORKCONFIG._serialized_end=1329
_CONFIG_NETWORKCONFIG_WIFIMODE._serialized_start=1264
_CONFIG_NETWORKCONFIG_WIFIMODE._serialized_end=1329
_CONFIG_DISPLAYCONFIG._serialized_start=1332
_CONFIG_DISPLAYCONFIG._serialized_end=1689
_CONFIG_DISPLAYCONFIG_GPSCOORDINATEFORMAT._serialized_start=1570
_CONFIG_DISPLAYCONFIG_GPSCOORDINATEFORMAT._serialized_end=1647
_CONFIG_DISPLAYCONFIG_DISPLAYUNITS._serialized_start=1649
_CONFIG_DISPLAYCONFIG_DISPLAYUNITS._serialized_end=1689
_CONFIG_LORACONFIG._serialized_start=1692
_CONFIG_LORACONFIG._serialized_end=2297
_CONFIG_LORACONFIG_REGIONCODE._serialized_start=2020
_CONFIG_LORACONFIG_REGIONCODE._serialized_end=2165
_CONFIG_LORACONFIG_MODEMPRESET._serialized_start=2168
_CONFIG_LORACONFIG_MODEMPRESET._serialized_end=2297
_CONFIG_BLUETOOTHCONFIG._serialized_start=2300
_CONFIG_BLUETOOTHCONFIG._serialized_end=2462
_CONFIG_BLUETOOTHCONFIG_PAIRINGMODE._serialized_start=2406
_CONFIG_BLUETOOTHCONFIG_PAIRINGMODE._serialized_end=2462
# @@protoc_insertion_point(module_scope)
Classes
class Config (*args, **kwargs)
-
A ProtocolMessage
Ancestors
- google._upb._message.Message
- google.protobuf.message.Message
Class variables
var BluetoothConfig
-
A ProtocolMessage
var DESCRIPTOR
var DeviceConfig
-
A ProtocolMessage
var DisplayConfig
-
A ProtocolMessage
var LoRaConfig
-
A ProtocolMessage
var NetworkConfig
-
A ProtocolMessage
var PositionConfig
-
A ProtocolMessage
var PowerConfig
-
A ProtocolMessage