* BLE and softAP provisioning examples added along with tests. * An application specific example added for demonstrating custom provisioning scheme. * tools/esp_prov/esp_prov.py can be used as a provisioning client for SoftAP, BLE and CLI based transports. Co-Authored-By: Amey Inamdar <amey@espressif.com> Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
150 lines
4.9 KiB
Python
150 lines
4.9 KiB
Python
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: custom_config.proto
|
|
|
|
import sys
|
|
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
|
from google.protobuf.internal import enum_type_wrapper
|
|
from google.protobuf import descriptor as _descriptor
|
|
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.FileDescriptor(
|
|
name='custom_config.proto',
|
|
package='',
|
|
syntax='proto3',
|
|
serialized_options=None,
|
|
serialized_pb=_b('\n\x13\x63ustom_config.proto\"4\n\x13\x43ustomConfigRequest\x12\x0c\n\x04info\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\"J\n\x14\x43ustomConfigResponse\x12#\n\x06status\x18\x01 \x01(\x0e\x32\x13.CustomConfigStatus\x12\r\n\x05\x64ummy\x18\x02 \x01(\x05*7\n\x12\x43ustomConfigStatus\x12\x11\n\rConfigSuccess\x10\x00\x12\x0e\n\nConfigFail\x10\x01\x62\x06proto3')
|
|
)
|
|
|
|
_CUSTOMCONFIGSTATUS = _descriptor.EnumDescriptor(
|
|
name='CustomConfigStatus',
|
|
full_name='CustomConfigStatus',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
values=[
|
|
_descriptor.EnumValueDescriptor(
|
|
name='ConfigSuccess', index=0, number=0,
|
|
serialized_options=None,
|
|
type=None),
|
|
_descriptor.EnumValueDescriptor(
|
|
name='ConfigFail', index=1, number=1,
|
|
serialized_options=None,
|
|
type=None),
|
|
],
|
|
containing_type=None,
|
|
serialized_options=None,
|
|
serialized_start=153,
|
|
serialized_end=208,
|
|
)
|
|
_sym_db.RegisterEnumDescriptor(_CUSTOMCONFIGSTATUS)
|
|
|
|
CustomConfigStatus = enum_type_wrapper.EnumTypeWrapper(_CUSTOMCONFIGSTATUS)
|
|
ConfigSuccess = 0
|
|
ConfigFail = 1
|
|
|
|
|
|
|
|
_CUSTOMCONFIGREQUEST = _descriptor.Descriptor(
|
|
name='CustomConfigRequest',
|
|
full_name='CustomConfigRequest',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='info', full_name='CustomConfigRequest.info', index=0,
|
|
number=1, type=9, cpp_type=9, label=1,
|
|
has_default_value=False, default_value=_b("").decode('utf-8'),
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
_descriptor.FieldDescriptor(
|
|
name='version', full_name='CustomConfigRequest.version', index=1,
|
|
number=2, type=5, cpp_type=1, label=1,
|
|
has_default_value=False, default_value=0,
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=23,
|
|
serialized_end=75,
|
|
)
|
|
|
|
|
|
_CUSTOMCONFIGRESPONSE = _descriptor.Descriptor(
|
|
name='CustomConfigResponse',
|
|
full_name='CustomConfigResponse',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='status', full_name='CustomConfigResponse.status', index=0,
|
|
number=1, type=14, cpp_type=8, label=1,
|
|
has_default_value=False, default_value=0,
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
_descriptor.FieldDescriptor(
|
|
name='dummy', full_name='CustomConfigResponse.dummy', index=1,
|
|
number=2, type=5, cpp_type=1, label=1,
|
|
has_default_value=False, default_value=0,
|
|
message_type=None, enum_type=None, containing_type=None,
|
|
is_extension=False, extension_scope=None,
|
|
serialized_options=None, file=DESCRIPTOR),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=77,
|
|
serialized_end=151,
|
|
)
|
|
|
|
_CUSTOMCONFIGRESPONSE.fields_by_name['status'].enum_type = _CUSTOMCONFIGSTATUS
|
|
DESCRIPTOR.message_types_by_name['CustomConfigRequest'] = _CUSTOMCONFIGREQUEST
|
|
DESCRIPTOR.message_types_by_name['CustomConfigResponse'] = _CUSTOMCONFIGRESPONSE
|
|
DESCRIPTOR.enum_types_by_name['CustomConfigStatus'] = _CUSTOMCONFIGSTATUS
|
|
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
|
|
CustomConfigRequest = _reflection.GeneratedProtocolMessageType('CustomConfigRequest', (_message.Message,), dict(
|
|
DESCRIPTOR = _CUSTOMCONFIGREQUEST,
|
|
__module__ = 'custom_config_pb2'
|
|
# @@protoc_insertion_point(class_scope:CustomConfigRequest)
|
|
))
|
|
_sym_db.RegisterMessage(CustomConfigRequest)
|
|
|
|
CustomConfigResponse = _reflection.GeneratedProtocolMessageType('CustomConfigResponse', (_message.Message,), dict(
|
|
DESCRIPTOR = _CUSTOMCONFIGRESPONSE,
|
|
__module__ = 'custom_config_pb2'
|
|
# @@protoc_insertion_point(class_scope:CustomConfigResponse)
|
|
))
|
|
_sym_db.RegisterMessage(CustomConfigResponse)
|
|
|
|
|
|
# @@protoc_insertion_point(module_scope)
|