feat: implement BLE provisioning protocol, rudimentary UI
This commit is contained in:
@@ -0,0 +1,407 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from network_config.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use networkConfigMsgTypeDescriptor instead')
|
||||
const NetworkConfigMsgType$json = {
|
||||
'1': 'NetworkConfigMsgType',
|
||||
'2': [
|
||||
{'1': 'TypeCmdGetWifiStatus', '2': 0},
|
||||
{'1': 'TypeRespGetWifiStatus', '2': 1},
|
||||
{'1': 'TypeCmdSetWifiConfig', '2': 2},
|
||||
{'1': 'TypeRespSetWifiConfig', '2': 3},
|
||||
{'1': 'TypeCmdApplyWifiConfig', '2': 4},
|
||||
{'1': 'TypeRespApplyWifiConfig', '2': 5},
|
||||
{'1': 'TypeCmdGetThreadStatus', '2': 6},
|
||||
{'1': 'TypeRespGetThreadStatus', '2': 7},
|
||||
{'1': 'TypeCmdSetThreadConfig', '2': 8},
|
||||
{'1': 'TypeRespSetThreadConfig', '2': 9},
|
||||
{'1': 'TypeCmdApplyThreadConfig', '2': 10},
|
||||
{'1': 'TypeRespApplyThreadConfig', '2': 11},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `NetworkConfigMsgType`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List networkConfigMsgTypeDescriptor = $convert.base64Decode(
|
||||
'ChROZXR3b3JrQ29uZmlnTXNnVHlwZRIYChRUeXBlQ21kR2V0V2lmaVN0YXR1cxAAEhkKFVR5cG'
|
||||
'VSZXNwR2V0V2lmaVN0YXR1cxABEhgKFFR5cGVDbWRTZXRXaWZpQ29uZmlnEAISGQoVVHlwZVJl'
|
||||
'c3BTZXRXaWZpQ29uZmlnEAMSGgoWVHlwZUNtZEFwcGx5V2lmaUNvbmZpZxAEEhsKF1R5cGVSZX'
|
||||
'NwQXBwbHlXaWZpQ29uZmlnEAUSGgoWVHlwZUNtZEdldFRocmVhZFN0YXR1cxAGEhsKF1R5cGVS'
|
||||
'ZXNwR2V0VGhyZWFkU3RhdHVzEAcSGgoWVHlwZUNtZFNldFRocmVhZENvbmZpZxAIEhsKF1R5cG'
|
||||
'VSZXNwU2V0VGhyZWFkQ29uZmlnEAkSHAoYVHlwZUNtZEFwcGx5VGhyZWFkQ29uZmlnEAoSHQoZ'
|
||||
'VHlwZVJlc3BBcHBseVRocmVhZENvbmZpZxAL');
|
||||
|
||||
@$core.Deprecated('Use cmdGetWifiStatusDescriptor instead')
|
||||
const CmdGetWifiStatus$json = {
|
||||
'1': 'CmdGetWifiStatus',
|
||||
};
|
||||
|
||||
/// Descriptor for `CmdGetWifiStatus`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List cmdGetWifiStatusDescriptor =
|
||||
$convert.base64Decode('ChBDbWRHZXRXaWZpU3RhdHVz');
|
||||
|
||||
@$core.Deprecated('Use respGetWifiStatusDescriptor instead')
|
||||
const RespGetWifiStatus$json = {
|
||||
'1': 'RespGetWifiStatus',
|
||||
'2': [
|
||||
{'1': 'status', '3': 1, '4': 1, '5': 14, '6': '.Status', '10': 'status'},
|
||||
{
|
||||
'1': 'wifi_sta_state',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.WifiStationState',
|
||||
'10': 'wifiStaState'
|
||||
},
|
||||
{
|
||||
'1': 'wifi_fail_reason',
|
||||
'3': 10,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.WifiConnectFailedReason',
|
||||
'9': 0,
|
||||
'10': 'wifiFailReason'
|
||||
},
|
||||
{
|
||||
'1': 'wifi_connected',
|
||||
'3': 11,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.WifiConnectedState',
|
||||
'9': 0,
|
||||
'10': 'wifiConnected'
|
||||
},
|
||||
{
|
||||
'1': 'attempt_failed',
|
||||
'3': 12,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.WifiAttemptFailed',
|
||||
'9': 0,
|
||||
'10': 'attemptFailed'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'state'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RespGetWifiStatus`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List respGetWifiStatusDescriptor = $convert.base64Decode(
|
||||
'ChFSZXNwR2V0V2lmaVN0YXR1cxIfCgZzdGF0dXMYASABKA4yBy5TdGF0dXNSBnN0YXR1cxI3Cg'
|
||||
'53aWZpX3N0YV9zdGF0ZRgCIAEoDjIRLldpZmlTdGF0aW9uU3RhdGVSDHdpZmlTdGFTdGF0ZRJE'
|
||||
'ChB3aWZpX2ZhaWxfcmVhc29uGAogASgOMhguV2lmaUNvbm5lY3RGYWlsZWRSZWFzb25IAFIOd2'
|
||||
'lmaUZhaWxSZWFzb24SPAoOd2lmaV9jb25uZWN0ZWQYCyABKAsyEy5XaWZpQ29ubmVjdGVkU3Rh'
|
||||
'dGVIAFINd2lmaUNvbm5lY3RlZBI7Cg5hdHRlbXB0X2ZhaWxlZBgMIAEoCzISLldpZmlBdHRlbX'
|
||||
'B0RmFpbGVkSABSDWF0dGVtcHRGYWlsZWRCBwoFc3RhdGU=');
|
||||
|
||||
@$core.Deprecated('Use cmdGetThreadStatusDescriptor instead')
|
||||
const CmdGetThreadStatus$json = {
|
||||
'1': 'CmdGetThreadStatus',
|
||||
};
|
||||
|
||||
/// Descriptor for `CmdGetThreadStatus`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List cmdGetThreadStatusDescriptor =
|
||||
$convert.base64Decode('ChJDbWRHZXRUaHJlYWRTdGF0dXM=');
|
||||
|
||||
@$core.Deprecated('Use respGetThreadStatusDescriptor instead')
|
||||
const RespGetThreadStatus$json = {
|
||||
'1': 'RespGetThreadStatus',
|
||||
'2': [
|
||||
{'1': 'status', '3': 1, '4': 1, '5': 14, '6': '.Status', '10': 'status'},
|
||||
{
|
||||
'1': 'thread_state',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.ThreadNetworkState',
|
||||
'10': 'threadState'
|
||||
},
|
||||
{
|
||||
'1': 'thread_fail_reason',
|
||||
'3': 10,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.ThreadAttachFailedReason',
|
||||
'9': 0,
|
||||
'10': 'threadFailReason'
|
||||
},
|
||||
{
|
||||
'1': 'thread_attached',
|
||||
'3': 11,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.ThreadAttachState',
|
||||
'9': 0,
|
||||
'10': 'threadAttached'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'state'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RespGetThreadStatus`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List respGetThreadStatusDescriptor = $convert.base64Decode(
|
||||
'ChNSZXNwR2V0VGhyZWFkU3RhdHVzEh8KBnN0YXR1cxgBIAEoDjIHLlN0YXR1c1IGc3RhdHVzEj'
|
||||
'YKDHRocmVhZF9zdGF0ZRgCIAEoDjITLlRocmVhZE5ldHdvcmtTdGF0ZVILdGhyZWFkU3RhdGUS'
|
||||
'SQoSdGhyZWFkX2ZhaWxfcmVhc29uGAogASgOMhkuVGhyZWFkQXR0YWNoRmFpbGVkUmVhc29uSA'
|
||||
'BSEHRocmVhZEZhaWxSZWFzb24SPQoPdGhyZWFkX2F0dGFjaGVkGAsgASgLMhIuVGhyZWFkQXR0'
|
||||
'YWNoU3RhdGVIAFIOdGhyZWFkQXR0YWNoZWRCBwoFc3RhdGU=');
|
||||
|
||||
@$core.Deprecated('Use cmdSetWifiConfigDescriptor instead')
|
||||
const CmdSetWifiConfig$json = {
|
||||
'1': 'CmdSetWifiConfig',
|
||||
'2': [
|
||||
{'1': 'ssid', '3': 1, '4': 1, '5': 12, '10': 'ssid'},
|
||||
{'1': 'passphrase', '3': 2, '4': 1, '5': 12, '10': 'passphrase'},
|
||||
{'1': 'bssid', '3': 3, '4': 1, '5': 12, '10': 'bssid'},
|
||||
{'1': 'channel', '3': 4, '4': 1, '5': 5, '10': 'channel'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `CmdSetWifiConfig`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List cmdSetWifiConfigDescriptor = $convert.base64Decode(
|
||||
'ChBDbWRTZXRXaWZpQ29uZmlnEhIKBHNzaWQYASABKAxSBHNzaWQSHgoKcGFzc3BocmFzZRgCIA'
|
||||
'EoDFIKcGFzc3BocmFzZRIUCgVic3NpZBgDIAEoDFIFYnNzaWQSGAoHY2hhbm5lbBgEIAEoBVIH'
|
||||
'Y2hhbm5lbA==');
|
||||
|
||||
@$core.Deprecated('Use cmdSetThreadConfigDescriptor instead')
|
||||
const CmdSetThreadConfig$json = {
|
||||
'1': 'CmdSetThreadConfig',
|
||||
'2': [
|
||||
{'1': 'dataset', '3': 1, '4': 1, '5': 12, '10': 'dataset'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `CmdSetThreadConfig`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List cmdSetThreadConfigDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChJDbWRTZXRUaHJlYWRDb25maWcSGAoHZGF0YXNldBgBIAEoDFIHZGF0YXNldA==');
|
||||
|
||||
@$core.Deprecated('Use respSetWifiConfigDescriptor instead')
|
||||
const RespSetWifiConfig$json = {
|
||||
'1': 'RespSetWifiConfig',
|
||||
'2': [
|
||||
{'1': 'status', '3': 1, '4': 1, '5': 14, '6': '.Status', '10': 'status'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RespSetWifiConfig`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List respSetWifiConfigDescriptor = $convert.base64Decode(
|
||||
'ChFSZXNwU2V0V2lmaUNvbmZpZxIfCgZzdGF0dXMYASABKA4yBy5TdGF0dXNSBnN0YXR1cw==');
|
||||
|
||||
@$core.Deprecated('Use respSetThreadConfigDescriptor instead')
|
||||
const RespSetThreadConfig$json = {
|
||||
'1': 'RespSetThreadConfig',
|
||||
'2': [
|
||||
{'1': 'status', '3': 1, '4': 1, '5': 14, '6': '.Status', '10': 'status'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RespSetThreadConfig`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List respSetThreadConfigDescriptor = $convert.base64Decode(
|
||||
'ChNSZXNwU2V0VGhyZWFkQ29uZmlnEh8KBnN0YXR1cxgBIAEoDjIHLlN0YXR1c1IGc3RhdHVz');
|
||||
|
||||
@$core.Deprecated('Use cmdApplyWifiConfigDescriptor instead')
|
||||
const CmdApplyWifiConfig$json = {
|
||||
'1': 'CmdApplyWifiConfig',
|
||||
};
|
||||
|
||||
/// Descriptor for `CmdApplyWifiConfig`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List cmdApplyWifiConfigDescriptor =
|
||||
$convert.base64Decode('ChJDbWRBcHBseVdpZmlDb25maWc=');
|
||||
|
||||
@$core.Deprecated('Use cmdApplyThreadConfigDescriptor instead')
|
||||
const CmdApplyThreadConfig$json = {
|
||||
'1': 'CmdApplyThreadConfig',
|
||||
};
|
||||
|
||||
/// Descriptor for `CmdApplyThreadConfig`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List cmdApplyThreadConfigDescriptor =
|
||||
$convert.base64Decode('ChRDbWRBcHBseVRocmVhZENvbmZpZw==');
|
||||
|
||||
@$core.Deprecated('Use respApplyWifiConfigDescriptor instead')
|
||||
const RespApplyWifiConfig$json = {
|
||||
'1': 'RespApplyWifiConfig',
|
||||
'2': [
|
||||
{'1': 'status', '3': 1, '4': 1, '5': 14, '6': '.Status', '10': 'status'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RespApplyWifiConfig`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List respApplyWifiConfigDescriptor = $convert.base64Decode(
|
||||
'ChNSZXNwQXBwbHlXaWZpQ29uZmlnEh8KBnN0YXR1cxgBIAEoDjIHLlN0YXR1c1IGc3RhdHVz');
|
||||
|
||||
@$core.Deprecated('Use respApplyThreadConfigDescriptor instead')
|
||||
const RespApplyThreadConfig$json = {
|
||||
'1': 'RespApplyThreadConfig',
|
||||
'2': [
|
||||
{'1': 'status', '3': 1, '4': 1, '5': 14, '6': '.Status', '10': 'status'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RespApplyThreadConfig`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List respApplyThreadConfigDescriptor = $convert.base64Decode(
|
||||
'ChVSZXNwQXBwbHlUaHJlYWRDb25maWcSHwoGc3RhdHVzGAEgASgOMgcuU3RhdHVzUgZzdGF0dX'
|
||||
'M=');
|
||||
|
||||
@$core.Deprecated('Use networkConfigPayloadDescriptor instead')
|
||||
const NetworkConfigPayload$json = {
|
||||
'1': 'NetworkConfigPayload',
|
||||
'2': [
|
||||
{
|
||||
'1': 'msg',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.NetworkConfigMsgType',
|
||||
'10': 'msg'
|
||||
},
|
||||
{
|
||||
'1': 'cmd_get_wifi_status',
|
||||
'3': 10,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.CmdGetWifiStatus',
|
||||
'9': 0,
|
||||
'10': 'cmdGetWifiStatus'
|
||||
},
|
||||
{
|
||||
'1': 'resp_get_wifi_status',
|
||||
'3': 11,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.RespGetWifiStatus',
|
||||
'9': 0,
|
||||
'10': 'respGetWifiStatus'
|
||||
},
|
||||
{
|
||||
'1': 'cmd_set_wifi_config',
|
||||
'3': 12,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.CmdSetWifiConfig',
|
||||
'9': 0,
|
||||
'10': 'cmdSetWifiConfig'
|
||||
},
|
||||
{
|
||||
'1': 'resp_set_wifi_config',
|
||||
'3': 13,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.RespSetWifiConfig',
|
||||
'9': 0,
|
||||
'10': 'respSetWifiConfig'
|
||||
},
|
||||
{
|
||||
'1': 'cmd_apply_wifi_config',
|
||||
'3': 14,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.CmdApplyWifiConfig',
|
||||
'9': 0,
|
||||
'10': 'cmdApplyWifiConfig'
|
||||
},
|
||||
{
|
||||
'1': 'resp_apply_wifi_config',
|
||||
'3': 15,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.RespApplyWifiConfig',
|
||||
'9': 0,
|
||||
'10': 'respApplyWifiConfig'
|
||||
},
|
||||
{
|
||||
'1': 'cmd_get_thread_status',
|
||||
'3': 16,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.CmdGetThreadStatus',
|
||||
'9': 0,
|
||||
'10': 'cmdGetThreadStatus'
|
||||
},
|
||||
{
|
||||
'1': 'resp_get_thread_status',
|
||||
'3': 17,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.RespGetThreadStatus',
|
||||
'9': 0,
|
||||
'10': 'respGetThreadStatus'
|
||||
},
|
||||
{
|
||||
'1': 'cmd_set_thread_config',
|
||||
'3': 18,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.CmdSetThreadConfig',
|
||||
'9': 0,
|
||||
'10': 'cmdSetThreadConfig'
|
||||
},
|
||||
{
|
||||
'1': 'resp_set_thread_config',
|
||||
'3': 19,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.RespSetThreadConfig',
|
||||
'9': 0,
|
||||
'10': 'respSetThreadConfig'
|
||||
},
|
||||
{
|
||||
'1': 'cmd_apply_thread_config',
|
||||
'3': 20,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.CmdApplyThreadConfig',
|
||||
'9': 0,
|
||||
'10': 'cmdApplyThreadConfig'
|
||||
},
|
||||
{
|
||||
'1': 'resp_apply_thread_config',
|
||||
'3': 21,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.RespApplyThreadConfig',
|
||||
'9': 0,
|
||||
'10': 'respApplyThreadConfig'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `NetworkConfigPayload`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List networkConfigPayloadDescriptor = $convert.base64Decode(
|
||||
'ChROZXR3b3JrQ29uZmlnUGF5bG9hZBInCgNtc2cYASABKA4yFS5OZXR3b3JrQ29uZmlnTXNnVH'
|
||||
'lwZVIDbXNnEkIKE2NtZF9nZXRfd2lmaV9zdGF0dXMYCiABKAsyES5DbWRHZXRXaWZpU3RhdHVz'
|
||||
'SABSEGNtZEdldFdpZmlTdGF0dXMSRQoUcmVzcF9nZXRfd2lmaV9zdGF0dXMYCyABKAsyEi5SZX'
|
||||
'NwR2V0V2lmaVN0YXR1c0gAUhFyZXNwR2V0V2lmaVN0YXR1cxJCChNjbWRfc2V0X3dpZmlfY29u'
|
||||
'ZmlnGAwgASgLMhEuQ21kU2V0V2lmaUNvbmZpZ0gAUhBjbWRTZXRXaWZpQ29uZmlnEkUKFHJlc3'
|
||||
'Bfc2V0X3dpZmlfY29uZmlnGA0gASgLMhIuUmVzcFNldFdpZmlDb25maWdIAFIRcmVzcFNldFdp'
|
||||
'ZmlDb25maWcSSAoVY21kX2FwcGx5X3dpZmlfY29uZmlnGA4gASgLMhMuQ21kQXBwbHlXaWZpQ2'
|
||||
'9uZmlnSABSEmNtZEFwcGx5V2lmaUNvbmZpZxJLChZyZXNwX2FwcGx5X3dpZmlfY29uZmlnGA8g'
|
||||
'ASgLMhQuUmVzcEFwcGx5V2lmaUNvbmZpZ0gAUhNyZXNwQXBwbHlXaWZpQ29uZmlnEkgKFWNtZF'
|
||||
'9nZXRfdGhyZWFkX3N0YXR1cxgQIAEoCzITLkNtZEdldFRocmVhZFN0YXR1c0gAUhJjbWRHZXRU'
|
||||
'aHJlYWRTdGF0dXMSSwoWcmVzcF9nZXRfdGhyZWFkX3N0YXR1cxgRIAEoCzIULlJlc3BHZXRUaH'
|
||||
'JlYWRTdGF0dXNIAFITcmVzcEdldFRocmVhZFN0YXR1cxJIChVjbWRfc2V0X3RocmVhZF9jb25m'
|
||||
'aWcYEiABKAsyEy5DbWRTZXRUaHJlYWRDb25maWdIAFISY21kU2V0VGhyZWFkQ29uZmlnEksKFn'
|
||||
'Jlc3Bfc2V0X3RocmVhZF9jb25maWcYEyABKAsyFC5SZXNwU2V0VGhyZWFkQ29uZmlnSABSE3Jl'
|
||||
'c3BTZXRUaHJlYWRDb25maWcSTgoXY21kX2FwcGx5X3RocmVhZF9jb25maWcYFCABKAsyFS5DbW'
|
||||
'RBcHBseVRocmVhZENvbmZpZ0gAUhRjbWRBcHBseVRocmVhZENvbmZpZxJRChhyZXNwX2FwcGx5'
|
||||
'X3RocmVhZF9jb25maWcYFSABKAsyFi5SZXNwQXBwbHlUaHJlYWRDb25maWdIAFIVcmVzcEFwcG'
|
||||
'x5VGhyZWFkQ29uZmlnQgkKB3BheWxvYWQ=');
|
||||
Reference in New Issue
Block a user