diff --git a/Meshtastic/Generated/Admin.cs b/Meshtastic/Generated/Admin.cs index c49c4ac..9e1016e 100644 --- a/Meshtastic/Generated/Admin.cs +++ b/Meshtastic/Generated/Admin.cs @@ -27,7 +27,7 @@ static AdminReflection() { "ChZtZXNodGFzdGljL2FkbWluLnByb3RvEgptZXNodGFzdGljGhhtZXNodGFz", "dGljL2NoYW5uZWwucHJvdG8aF21lc2h0YXN0aWMvY29uZmlnLnByb3RvGiJt", "ZXNodGFzdGljL2Nvbm5lY3Rpb25fc3RhdHVzLnByb3RvGhVtZXNodGFzdGlj", - "L21lc2gucHJvdG8aHm1lc2h0YXN0aWMvbW9kdWxlX2NvbmZpZy5wcm90byLO", + "L21lc2gucHJvdG8aHm1lc2h0YXN0aWMvbW9kdWxlX2NvbmZpZy5wcm90byLj", "EQoMQWRtaW5NZXNzYWdlEh0KE2dldF9jaGFubmVsX3JlcXVlc3QYASABKA1I", "ABIzChRnZXRfY2hhbm5lbF9yZXNwb25zZRgCIAEoCzITLm1lc2h0YXN0aWMu", "Q2hhbm5lbEgAEhsKEWdldF9vd25lcl9yZXF1ZXN0GAMgASgISAASLgoSZ2V0", @@ -52,43 +52,44 @@ static AdminReflection() { "EyABKAhIABJcCiZnZXRfbm9kZV9yZW1vdGVfaGFyZHdhcmVfcGluc19yZXNw", "b25zZRgUIAEoCzIqLm1lc2h0YXN0aWMuTm9kZVJlbW90ZUhhcmR3YXJlUGlu", "c1Jlc3BvbnNlSAASIAoWZW50ZXJfZGZ1X21vZGVfcmVxdWVzdBgVIAEoCEgA", - "Eh0KE2RlbGV0ZV9maWxlX3JlcXVlc3QYFiABKAlIABIlCglzZXRfb3duZXIY", - "ICABKAsyEC5tZXNodGFzdGljLlVzZXJIABIqCgtzZXRfY2hhbm5lbBghIAEo", - "CzITLm1lc2h0YXN0aWMuQ2hhbm5lbEgAEigKCnNldF9jb25maWcYIiABKAsy", - "Ei5tZXNodGFzdGljLkNvbmZpZ0gAEjUKEXNldF9tb2R1bGVfY29uZmlnGCMg", - "ASgLMhgubWVzaHRhc3RpYy5Nb2R1bGVDb25maWdIABIsCiJzZXRfY2FubmVk", - "X21lc3NhZ2VfbW9kdWxlX21lc3NhZ2VzGCQgASgJSAASHgoUc2V0X3Jpbmd0", - "b25lX21lc3NhZ2UYJSABKAlIABIbChFyZW1vdmVfYnlfbm9kZW51bRgmIAEo", - "DUgAEhsKEXNldF9mYXZvcml0ZV9ub2RlGCcgASgNSAASHgoUcmVtb3ZlX2Zh", - "dm9yaXRlX25vZGUYKCABKA1IABIyChJzZXRfZml4ZWRfcG9zaXRpb24YKSAB", - "KAsyFC5tZXNodGFzdGljLlBvc2l0aW9uSAASHwoVcmVtb3ZlX2ZpeGVkX3Bv", - "c2l0aW9uGCogASgISAASHQoTYmVnaW5fZWRpdF9zZXR0aW5ncxhAIAEoCEgA", - "Eh4KFGNvbW1pdF9lZGl0X3NldHRpbmdzGEEgASgISAASHAoScmVib290X290", - "YV9zZWNvbmRzGF8gASgFSAASGAoOZXhpdF9zaW11bGF0b3IYYCABKAhIABIY", - "Cg5yZWJvb3Rfc2Vjb25kcxhhIAEoBUgAEhoKEHNodXRkb3duX3NlY29uZHMY", - "YiABKAVIABIXCg1mYWN0b3J5X3Jlc2V0GGMgASgFSAASFgoMbm9kZWRiX3Jl", - "c2V0GGQgASgFSAAilQEKCkNvbmZpZ1R5cGUSEQoNREVWSUNFX0NPTkZJRxAA", - "EhMKD1BPU0lUSU9OX0NPTkZJRxABEhAKDFBPV0VSX0NPTkZJRxACEhIKDk5F", - "VFdPUktfQ09ORklHEAMSEgoORElTUExBWV9DT05GSUcQBBIPCgtMT1JBX0NP", - "TkZJRxAFEhQKEEJMVUVUT09USF9DT05GSUcQBiK7AgoQTW9kdWxlQ29uZmln", - "VHlwZRIPCgtNUVRUX0NPTkZJRxAAEhEKDVNFUklBTF9DT05GSUcQARITCg9F", - "WFROT1RJRl9DT05GSUcQAhIXChNTVE9SRUZPUldBUkRfQ09ORklHEAMSFAoQ", - "UkFOR0VURVNUX0NPTkZJRxAEEhQKEFRFTEVNRVRSWV9DT05GSUcQBRIUChBD", - "QU5ORURNU0dfQ09ORklHEAYSEAoMQVVESU9fQ09ORklHEAcSGQoVUkVNT1RF", - "SEFSRFdBUkVfQ09ORklHEAgSFwoTTkVJR0hCT1JJTkZPX0NPTkZJRxAJEhoK", - "FkFNQklFTlRMSUdIVElOR19DT05GSUcQChIaChZERVRFQ1RJT05TRU5TT1Jf", - "Q09ORklHEAsSFQoRUEFYQ09VTlRFUl9DT05GSUcQDEIRCg9wYXlsb2FkX3Zh", - "cmlhbnQiWwoNSGFtUGFyYW1ldGVycxIRCgljYWxsX3NpZ24YASABKAkSEAoI", - "dHhfcG93ZXIYAiABKAUSEQoJZnJlcXVlbmN5GAMgASgCEhIKCnNob3J0X25h", - "bWUYBCABKAkiZgoeTm9kZVJlbW90ZUhhcmR3YXJlUGluc1Jlc3BvbnNlEkQK", - "GW5vZGVfcmVtb3RlX2hhcmR3YXJlX3BpbnMYASADKAsyIS5tZXNodGFzdGlj", - "Lk5vZGVSZW1vdGVIYXJkd2FyZVBpbkJgChNjb20uZ2Vla3N2aWxsZS5tZXNo", - "QgtBZG1pblByb3Rvc1oiZ2l0aHViLmNvbS9tZXNodGFzdGljL2dvL2dlbmVy", - "YXRlZKoCFE1lc2h0YXN0aWMuUHJvdG9idWZzugIAYgZwcm90bzM=")); + "Eh0KE2RlbGV0ZV9maWxlX3JlcXVlc3QYFiABKAlIABITCglzZXRfc2NhbGUY", + "FyABKA1IABIlCglzZXRfb3duZXIYICABKAsyEC5tZXNodGFzdGljLlVzZXJI", + "ABIqCgtzZXRfY2hhbm5lbBghIAEoCzITLm1lc2h0YXN0aWMuQ2hhbm5lbEgA", + "EigKCnNldF9jb25maWcYIiABKAsyEi5tZXNodGFzdGljLkNvbmZpZ0gAEjUK", + "EXNldF9tb2R1bGVfY29uZmlnGCMgASgLMhgubWVzaHRhc3RpYy5Nb2R1bGVD", + "b25maWdIABIsCiJzZXRfY2FubmVkX21lc3NhZ2VfbW9kdWxlX21lc3NhZ2Vz", + "GCQgASgJSAASHgoUc2V0X3Jpbmd0b25lX21lc3NhZ2UYJSABKAlIABIbChFy", + "ZW1vdmVfYnlfbm9kZW51bRgmIAEoDUgAEhsKEXNldF9mYXZvcml0ZV9ub2Rl", + "GCcgASgNSAASHgoUcmVtb3ZlX2Zhdm9yaXRlX25vZGUYKCABKA1IABIyChJz", + "ZXRfZml4ZWRfcG9zaXRpb24YKSABKAsyFC5tZXNodGFzdGljLlBvc2l0aW9u", + "SAASHwoVcmVtb3ZlX2ZpeGVkX3Bvc2l0aW9uGCogASgISAASHQoTYmVnaW5f", + "ZWRpdF9zZXR0aW5ncxhAIAEoCEgAEh4KFGNvbW1pdF9lZGl0X3NldHRpbmdz", + "GEEgASgISAASHAoScmVib290X290YV9zZWNvbmRzGF8gASgFSAASGAoOZXhp", + "dF9zaW11bGF0b3IYYCABKAhIABIYCg5yZWJvb3Rfc2Vjb25kcxhhIAEoBUgA", + "EhoKEHNodXRkb3duX3NlY29uZHMYYiABKAVIABIXCg1mYWN0b3J5X3Jlc2V0", + "GGMgASgFSAASFgoMbm9kZWRiX3Jlc2V0GGQgASgFSAAilQEKCkNvbmZpZ1R5", + "cGUSEQoNREVWSUNFX0NPTkZJRxAAEhMKD1BPU0lUSU9OX0NPTkZJRxABEhAK", + "DFBPV0VSX0NPTkZJRxACEhIKDk5FVFdPUktfQ09ORklHEAMSEgoORElTUExB", + "WV9DT05GSUcQBBIPCgtMT1JBX0NPTkZJRxAFEhQKEEJMVUVUT09USF9DT05G", + "SUcQBiK7AgoQTW9kdWxlQ29uZmlnVHlwZRIPCgtNUVRUX0NPTkZJRxAAEhEK", + "DVNFUklBTF9DT05GSUcQARITCg9FWFROT1RJRl9DT05GSUcQAhIXChNTVE9S", + "RUZPUldBUkRfQ09ORklHEAMSFAoQUkFOR0VURVNUX0NPTkZJRxAEEhQKEFRF", + "TEVNRVRSWV9DT05GSUcQBRIUChBDQU5ORURNU0dfQ09ORklHEAYSEAoMQVVE", + "SU9fQ09ORklHEAcSGQoVUkVNT1RFSEFSRFdBUkVfQ09ORklHEAgSFwoTTkVJ", + "R0hCT1JJTkZPX0NPTkZJRxAJEhoKFkFNQklFTlRMSUdIVElOR19DT05GSUcQ", + "ChIaChZERVRFQ1RJT05TRU5TT1JfQ09ORklHEAsSFQoRUEFYQ09VTlRFUl9D", + "T05GSUcQDEIRCg9wYXlsb2FkX3ZhcmlhbnQiWwoNSGFtUGFyYW1ldGVycxIR", + "CgljYWxsX3NpZ24YASABKAkSEAoIdHhfcG93ZXIYAiABKAUSEQoJZnJlcXVl", + "bmN5GAMgASgCEhIKCnNob3J0X25hbWUYBCABKAkiZgoeTm9kZVJlbW90ZUhh", + "cmR3YXJlUGluc1Jlc3BvbnNlEkQKGW5vZGVfcmVtb3RlX2hhcmR3YXJlX3Bp", + "bnMYASADKAsyIS5tZXNodGFzdGljLk5vZGVSZW1vdGVIYXJkd2FyZVBpbkJg", + "ChNjb20uZ2Vla3N2aWxsZS5tZXNoQgtBZG1pblByb3Rvc1oiZ2l0aHViLmNv", + "bS9tZXNodGFzdGljL2dvL2dlbmVyYXRlZKoCFE1lc2h0YXN0aWMuUHJvdG9i", + "dWZzugIAYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Meshtastic.Protobufs.ChannelReflection.Descriptor, global::Meshtastic.Protobufs.ConfigReflection.Descriptor, global::Meshtastic.Protobufs.ConnectionStatusReflection.Descriptor, global::Meshtastic.Protobufs.MeshReflection.Descriptor, global::Meshtastic.Protobufs.ModuleConfigReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.AdminMessage), global::Meshtastic.Protobufs.AdminMessage.Parser, new[]{ "GetChannelRequest", "GetChannelResponse", "GetOwnerRequest", "GetOwnerResponse", "GetConfigRequest", "GetConfigResponse", "GetModuleConfigRequest", "GetModuleConfigResponse", "GetCannedMessageModuleMessagesRequest", "GetCannedMessageModuleMessagesResponse", "GetDeviceMetadataRequest", "GetDeviceMetadataResponse", "GetRingtoneRequest", "GetRingtoneResponse", "GetDeviceConnectionStatusRequest", "GetDeviceConnectionStatusResponse", "SetHamMode", "GetNodeRemoteHardwarePinsRequest", "GetNodeRemoteHardwarePinsResponse", "EnterDfuModeRequest", "DeleteFileRequest", "SetOwner", "SetChannel", "SetConfig", "SetModuleConfig", "SetCannedMessageModuleMessages", "SetRingtoneMessage", "RemoveByNodenum", "SetFavoriteNode", "RemoveFavoriteNode", "SetFixedPosition", "RemoveFixedPosition", "BeginEditSettings", "CommitEditSettings", "RebootOtaSeconds", "ExitSimulator", "RebootSeconds", "ShutdownSeconds", "FactoryReset", "NodedbReset" }, new[]{ "PayloadVariant" }, new[]{ typeof(global::Meshtastic.Protobufs.AdminMessage.Types.ConfigType), typeof(global::Meshtastic.Protobufs.AdminMessage.Types.ModuleConfigType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.AdminMessage), global::Meshtastic.Protobufs.AdminMessage.Parser, new[]{ "GetChannelRequest", "GetChannelResponse", "GetOwnerRequest", "GetOwnerResponse", "GetConfigRequest", "GetConfigResponse", "GetModuleConfigRequest", "GetModuleConfigResponse", "GetCannedMessageModuleMessagesRequest", "GetCannedMessageModuleMessagesResponse", "GetDeviceMetadataRequest", "GetDeviceMetadataResponse", "GetRingtoneRequest", "GetRingtoneResponse", "GetDeviceConnectionStatusRequest", "GetDeviceConnectionStatusResponse", "SetHamMode", "GetNodeRemoteHardwarePinsRequest", "GetNodeRemoteHardwarePinsResponse", "EnterDfuModeRequest", "DeleteFileRequest", "SetScale", "SetOwner", "SetChannel", "SetConfig", "SetModuleConfig", "SetCannedMessageModuleMessages", "SetRingtoneMessage", "RemoveByNodenum", "SetFavoriteNode", "RemoveFavoriteNode", "SetFixedPosition", "RemoveFixedPosition", "BeginEditSettings", "CommitEditSettings", "RebootOtaSeconds", "ExitSimulator", "RebootSeconds", "ShutdownSeconds", "FactoryReset", "NodedbReset" }, new[]{ "PayloadVariant" }, new[]{ typeof(global::Meshtastic.Protobufs.AdminMessage.Types.ConfigType), typeof(global::Meshtastic.Protobufs.AdminMessage.Types.ModuleConfigType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.HamParameters), global::Meshtastic.Protobufs.HamParameters.Parser, new[]{ "CallSign", "TxPower", "Frequency", "ShortName" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.NodeRemoteHardwarePinsResponse), global::Meshtastic.Protobufs.NodeRemoteHardwarePinsResponse.Parser, new[]{ "NodeRemoteHardwarePins" }, null, null, null, null) })); @@ -201,6 +202,9 @@ public AdminMessage(AdminMessage other) : this() { case PayloadVariantOneofCase.DeleteFileRequest: DeleteFileRequest = other.DeleteFileRequest; break; + case PayloadVariantOneofCase.SetScale: + SetScale = other.SetScale; + break; case PayloadVariantOneofCase.SetOwner: SetOwner = other.SetOwner.Clone(); break; @@ -607,6 +611,22 @@ public string DeleteFileRequest { } } + /// Field number for the "set_scale" field. + public const int SetScaleFieldNumber = 23; + /// + /// + /// Set zero and offset for scale chips + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SetScale { + get { return payloadVariantCase_ == PayloadVariantOneofCase.SetScale ? (uint) payloadVariant_ : 0; } + set { + payloadVariant_ = value; + payloadVariantCase_ = PayloadVariantOneofCase.SetScale; + } + } + /// Field number for the "set_owner" field. public const int SetOwnerFieldNumber = 32; /// @@ -943,6 +963,7 @@ public enum PayloadVariantOneofCase { GetNodeRemoteHardwarePinsResponse = 20, EnterDfuModeRequest = 21, DeleteFileRequest = 22, + SetScale = 23, SetOwner = 32, SetChannel = 33, SetConfig = 34, @@ -1013,6 +1034,7 @@ public bool Equals(AdminMessage other) { if (!object.Equals(GetNodeRemoteHardwarePinsResponse, other.GetNodeRemoteHardwarePinsResponse)) return false; if (EnterDfuModeRequest != other.EnterDfuModeRequest) return false; if (DeleteFileRequest != other.DeleteFileRequest) return false; + if (SetScale != other.SetScale) return false; if (!object.Equals(SetOwner, other.SetOwner)) return false; if (!object.Equals(SetChannel, other.SetChannel)) return false; if (!object.Equals(SetConfig, other.SetConfig)) return false; @@ -1061,6 +1083,7 @@ public override int GetHashCode() { if (payloadVariantCase_ == PayloadVariantOneofCase.GetNodeRemoteHardwarePinsResponse) hash ^= GetNodeRemoteHardwarePinsResponse.GetHashCode(); if (payloadVariantCase_ == PayloadVariantOneofCase.EnterDfuModeRequest) hash ^= EnterDfuModeRequest.GetHashCode(); if (payloadVariantCase_ == PayloadVariantOneofCase.DeleteFileRequest) hash ^= DeleteFileRequest.GetHashCode(); + if (payloadVariantCase_ == PayloadVariantOneofCase.SetScale) hash ^= SetScale.GetHashCode(); if (payloadVariantCase_ == PayloadVariantOneofCase.SetOwner) hash ^= SetOwner.GetHashCode(); if (payloadVariantCase_ == PayloadVariantOneofCase.SetChannel) hash ^= SetChannel.GetHashCode(); if (payloadVariantCase_ == PayloadVariantOneofCase.SetConfig) hash ^= SetConfig.GetHashCode(); @@ -1183,6 +1206,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(178, 1); output.WriteString(DeleteFileRequest); } + if (payloadVariantCase_ == PayloadVariantOneofCase.SetScale) { + output.WriteRawTag(184, 1); + output.WriteUInt32(SetScale); + } if (payloadVariantCase_ == PayloadVariantOneofCase.SetOwner) { output.WriteRawTag(130, 2); output.WriteMessage(SetOwner); @@ -1353,6 +1380,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(178, 1); output.WriteString(DeleteFileRequest); } + if (payloadVariantCase_ == PayloadVariantOneofCase.SetScale) { + output.WriteRawTag(184, 1); + output.WriteUInt32(SetScale); + } if (payloadVariantCase_ == PayloadVariantOneofCase.SetOwner) { output.WriteRawTag(130, 2); output.WriteMessage(SetOwner); @@ -1502,6 +1533,9 @@ public int CalculateSize() { if (payloadVariantCase_ == PayloadVariantOneofCase.DeleteFileRequest) { size += 2 + pb::CodedOutputStream.ComputeStringSize(DeleteFileRequest); } + if (payloadVariantCase_ == PayloadVariantOneofCase.SetScale) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(SetScale); + } if (payloadVariantCase_ == PayloadVariantOneofCase.SetOwner) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(SetOwner); } @@ -1659,6 +1693,9 @@ public void MergeFrom(AdminMessage other) { case PayloadVariantOneofCase.DeleteFileRequest: DeleteFileRequest = other.DeleteFileRequest; break; + case PayloadVariantOneofCase.SetScale: + SetScale = other.SetScale; + break; case PayloadVariantOneofCase.SetOwner: if (SetOwner == null) { SetOwner = new global::Meshtastic.Protobufs.User(); @@ -1874,6 +1911,10 @@ public void MergeFrom(pb::CodedInputStream input) { DeleteFileRequest = input.ReadString(); break; } + case 184: { + SetScale = input.ReadUInt32(); + break; + } case 258: { global::Meshtastic.Protobufs.User subBuilder = new global::Meshtastic.Protobufs.User(); if (payloadVariantCase_ == PayloadVariantOneofCase.SetOwner) { @@ -2116,6 +2157,10 @@ public void MergeFrom(pb::CodedInputStream input) { DeleteFileRequest = input.ReadString(); break; } + case 184: { + SetScale = input.ReadUInt32(); + break; + } case 258: { global::Meshtastic.Protobufs.User subBuilder = new global::Meshtastic.Protobufs.User(); if (payloadVariantCase_ == PayloadVariantOneofCase.SetOwner) { diff --git a/Meshtastic/Generated/Config.cs b/Meshtastic/Generated/Config.cs index 0e94d7b..209159d 100644 --- a/Meshtastic/Generated/Config.cs +++ b/Meshtastic/Generated/Config.cs @@ -24,7 +24,7 @@ public static partial class ConfigReflection { static ConfigReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "ChdtZXNodGFzdGljL2NvbmZpZy5wcm90bxIKbWVzaHRhc3RpYyLCHwoGQ29u", + "ChdtZXNodGFzdGljL2NvbmZpZy5wcm90bxIKbWVzaHRhc3RpYyLxIQoGQ29u", "ZmlnEjEKBmRldmljZRgBIAEoCzIfLm1lc2h0YXN0aWMuQ29uZmlnLkRldmlj", "ZUNvbmZpZ0gAEjUKCHBvc2l0aW9uGAIgASgLMiEubWVzaHRhc3RpYy5Db25m", "aWcuUG9zaXRpb25Db25maWdIABIvCgVwb3dlchgDIAEoCzIeLm1lc2h0YXN0", @@ -76,7 +76,7 @@ static ConfigReflection() { "Q29uZmlnLklwVjRDb25maWcSFgoOcnN5c2xvZ19zZXJ2ZXIYCSABKAkaRgoK", "SXBWNENvbmZpZxIKCgJpcBgBIAEoBxIPCgdnYXRld2F5GAIgASgHEg4KBnN1", "Ym5ldBgDIAEoBxILCgNkbnMYBCABKAciIwoLQWRkcmVzc01vZGUSCAoEREhD", - "UBAAEgoKBlNUQVRJQxABGr4FCg1EaXNwbGF5Q29uZmlnEhYKDnNjcmVlbl9v", + "UBAAEgoKBlNUQVRJQxABGs0HCg1EaXNwbGF5Q29uZmlnEhYKDnNjcmVlbl9v", "bl9zZWNzGAEgASgNEkgKCmdwc19mb3JtYXQYAiABKA4yNC5tZXNodGFzdGlj", "LkNvbmZpZy5EaXNwbGF5Q29uZmlnLkdwc0Nvb3JkaW5hdGVGb3JtYXQSIQoZ", "YXV0b19zY3JlZW5fY2Fyb3VzZWxfc2VjcxgDIAEoDRIZChFjb21wYXNzX25v", @@ -86,37 +86,44 @@ static ConfigReflection() { "bGF5Q29uZmlnLk9sZWRUeXBlEkEKC2Rpc3BsYXltb2RlGAggASgOMiwubWVz", "aHRhc3RpYy5Db25maWcuRGlzcGxheUNvbmZpZy5EaXNwbGF5TW9kZRIUCgxo", "ZWFkaW5nX2JvbGQYCSABKAgSHQoVd2FrZV9vbl90YXBfb3JfbW90aW9uGAog", - "ASgIIk0KE0dwc0Nvb3JkaW5hdGVGb3JtYXQSBwoDREVDEAASBwoDRE1TEAES", - "BwoDVVRNEAISCAoETUdSUxADEgcKA09MQxAEEggKBE9TR1IQBSIoCgxEaXNw", - "bGF5VW5pdHMSCgoGTUVUUklDEAASDAoISU1QRVJJQUwQASJNCghPbGVkVHlw", - "ZRINCglPTEVEX0FVVE8QABIQCgxPTEVEX1NTRDEzMDYQARIPCgtPTEVEX1NI", - "MTEwNhACEg8KC09MRURfU0gxMTA3EAMiQQoLRGlzcGxheU1vZGUSCwoHREVG", - "QVVMVBAAEgwKCFRXT0NPTE9SEAESDAoISU5WRVJURUQQAhIJCgVDT0xPUhAD", - "GrAGCgpMb1JhQ29uZmlnEhIKCnVzZV9wcmVzZXQYASABKAgSPwoMbW9kZW1f", - "cHJlc2V0GAIgASgOMikubWVzaHRhc3RpYy5Db25maWcuTG9SYUNvbmZpZy5N", - "b2RlbVByZXNldBIRCgliYW5kd2lkdGgYAyABKA0SFQoNc3ByZWFkX2ZhY3Rv", - "chgEIAEoDRITCgtjb2RpbmdfcmF0ZRgFIAEoDRIYChBmcmVxdWVuY3lfb2Zm", - "c2V0GAYgASgCEjgKBnJlZ2lvbhgHIAEoDjIoLm1lc2h0YXN0aWMuQ29uZmln", - "LkxvUmFDb25maWcuUmVnaW9uQ29kZRIRCglob3BfbGltaXQYCCABKA0SEgoK", - "dHhfZW5hYmxlZBgJIAEoCBIQCgh0eF9wb3dlchgKIAEoBRITCgtjaGFubmVs", - "X251bRgLIAEoDRIbChNvdmVycmlkZV9kdXR5X2N5Y2xlGAwgASgIEh4KFnN4", - "MTI2eF9yeF9ib29zdGVkX2dhaW4YDSABKAgSGgoSb3ZlcnJpZGVfZnJlcXVl", - "bmN5GA4gASgCEhcKD2lnbm9yZV9pbmNvbWluZxhnIAMoDRITCgtpZ25vcmVf", - "bXF0dBhoIAEoCCLNAQoKUmVnaW9uQ29kZRIJCgVVTlNFVBAAEgYKAlVTEAES", - "CgoGRVVfNDMzEAISCgoGRVVfODY4EAMSBgoCQ04QBBIGCgJKUBAFEgcKA0FO", - "WhAGEgYKAktSEAcSBgoC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IXCg9pZ25vcmVfaW5jb21pbmcYZyADKA0SEwoLaWdub3Jl", + "X21xdHQYaCABKAgizQEKClJlZ2lvbkNvZGUSCQoFVU5TRVQQABIGCgJVUxAB", + "EgoKBkVVXzQzMxACEgoKBkVVXzg2OBADEgYKAkNOEAQSBgoCSlAQBRIHCgNB", + "TloQBhIGCgJLUhAHEgYKAlRXEAgSBgoCUlUQCRIGCgJJThAKEgoKBk5aXzg2", + "NRALEgYKAlRIEAwSCwoHTE9SQV8yNBANEgoKBlVBXzQzMxAOEgoKBlVBXzg2", + "OBAPEgoKBk1ZXzQzMxAQEgoKBk1ZXzkxORAREgoKBlNHXzkyMxASIpQBCgtN", + "b2RlbVByZXNldBINCglMT05HX0ZBU1QQABINCglMT05HX1NMT1cQARISCg5W", + "RVJZX0xPTkdfU0xPVxACEg8KC01FRElVTV9TTE9XEAMSDwoLTUVESVVNX0ZB", + "U1QQBBIOCgpTSE9SVF9TTE9XEAUSDgoKU0hPUlRfRkFTVBAGEhEKDUxPTkdf", + "TU9ERVJBVEUQBxrNAQoPQmx1ZXRvb3RoQ29uZmlnEg8KB2VuYWJsZWQYASAB", + "KAgSPAoEbW9kZRgCIAEoDjIuLm1lc2h0YXN0aWMuQ29uZmlnLkJsdWV0b290", + "aENvbmZpZy5QYWlyaW5nTW9kZRIRCglmaXhlZF9waW4YAyABKA0SHgoWZGV2", + "aWNlX2xvZ2dpbmdfZW5hYmxlZBgEIAEoCCI4CgtQYWlyaW5nTW9kZRIOCgpS", + "QU5ET01fUElOEAASDQoJRklYRURfUElOEAESCgoGTk9fUElOEAJCEQoPcGF5", + "bG9hZF92YXJpYW50QmEKE2NvbS5nZWVrc3ZpbGxlLm1lc2hCDENvbmZpZ1By", + "b3Rvc1oiZ2l0aHViLmNvbS9tZXNodGFzdGljL2dvL2dlbmVyYXRlZKoCFE1l", + "c2h0YXN0aWMuUHJvdG9idWZzugIAYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -124,9 +131,9 @@ static ConfigReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.PositionConfig), global::Meshtastic.Protobufs.Config.Types.PositionConfig.Parser, new[]{ "PositionBroadcastSecs", "PositionBroadcastSmartEnabled", "FixedPosition", "GpsEnabled", "GpsUpdateInterval", "GpsAttemptTime", "PositionFlags", "RxGpio", "TxGpio", "BroadcastSmartMinimumDistance", "BroadcastSmartMinimumIntervalSecs", "GpsEnGpio", "GpsMode" }, null, new[]{ typeof(global::Meshtastic.Protobufs.Config.Types.PositionConfig.Types.PositionFlags), typeof(global::Meshtastic.Protobufs.Config.Types.PositionConfig.Types.GpsMode) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.PowerConfig), global::Meshtastic.Protobufs.Config.Types.PowerConfig.Parser, new[]{ "IsPowerSaving", "OnBatteryShutdownAfterSecs", "AdcMultiplierOverride", "WaitBluetoothSecs", "SdsSecs", "LsSecs", "MinWakeSecs", "DeviceBatteryInaAddress" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.NetworkConfig), global::Meshtastic.Protobufs.Config.Types.NetworkConfig.Parser, new[]{ "WifiEnabled", "WifiSsid", "WifiPsk", "NtpServer", "EthEnabled", "AddressMode", "Ipv4Config", "RsyslogServer" }, null, new[]{ typeof(global::Meshtastic.Protobufs.Config.Types.NetworkConfig.Types.AddressMode) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.NetworkConfig.Types.IpV4Config), global::Meshtastic.Protobufs.Config.Types.NetworkConfig.Types.IpV4Config.Parser, new[]{ "Ip", "Gateway", "Subnet", "Dns" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig), global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Parser, new[]{ "ScreenOnSecs", "GpsFormat", "AutoScreenCarouselSecs", "CompassNorthTop", "FlipScreen", "Units", "Oled", "Displaymode", "HeadingBold", "WakeOnTapOrMotion" }, null, new[]{ typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.GpsCoordinateFormat), typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.DisplayUnits), typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.OledType), typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.DisplayMode) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig), global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Parser, new[]{ "ScreenOnSecs", "GpsFormat", "AutoScreenCarouselSecs", "CompassNorthTop", "FlipScreen", "Units", "Oled", "Displaymode", "HeadingBold", "WakeOnTapOrMotion", "CompassOrientation" }, null, new[]{ typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.GpsCoordinateFormat), typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.DisplayUnits), typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.OledType), typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.DisplayMode), typeof(global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.LoRaConfig), global::Meshtastic.Protobufs.Config.Types.LoRaConfig.Parser, new[]{ "UsePreset", "ModemPreset", "Bandwidth", "SpreadFactor", "CodingRate", "FrequencyOffset", "Region", "HopLimit", "TxEnabled", "TxPower", "ChannelNum", "OverrideDutyCycle", "Sx126XRxBoostedGain", "OverrideFrequency", "IgnoreIncoming", "IgnoreMqtt" }, null, new[]{ typeof(global::Meshtastic.Protobufs.Config.Types.LoRaConfig.Types.RegionCode), typeof(global::Meshtastic.Protobufs.Config.Types.LoRaConfig.Types.ModemPreset) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.BluetoothConfig), global::Meshtastic.Protobufs.Config.Types.BluetoothConfig.Parser, new[]{ "Enabled", "Mode", "FixedPin" }, null, new[]{ typeof(global::Meshtastic.Protobufs.Config.Types.BluetoothConfig.Types.PairingMode) }, null, null)}) + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Config.Types.BluetoothConfig), global::Meshtastic.Protobufs.Config.Types.BluetoothConfig.Parser, new[]{ "Enabled", "Mode", "FixedPin", "DeviceLoggingEnabled" }, null, new[]{ typeof(global::Meshtastic.Protobufs.Config.Types.BluetoothConfig.Types.PairingMode) }, null, null)}) })); } #endregion @@ -3634,6 +3641,7 @@ public DisplayConfig(DisplayConfig other) : this() { displaymode_ = other.displaymode_; headingBold_ = other.headingBold_; wakeOnTapOrMotion_ = other.wakeOnTapOrMotion_; + compassOrientation_ = other.compassOrientation_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3806,6 +3814,22 @@ public bool WakeOnTapOrMotion { } } + /// Field number for the "compass_orientation" field. + public const int CompassOrientationFieldNumber = 11; + private global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation compassOrientation_ = global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation.Degrees0; + /// + /// + /// Indicates how to rotate or invert the compass output to accurate display on the display. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation CompassOrientation { + get { return compassOrientation_; } + set { + compassOrientation_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -3831,6 +3855,7 @@ public bool Equals(DisplayConfig other) { if (Displaymode != other.Displaymode) return false; if (HeadingBold != other.HeadingBold) return false; if (WakeOnTapOrMotion != other.WakeOnTapOrMotion) return false; + if (CompassOrientation != other.CompassOrientation) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3848,6 +3873,7 @@ public override int GetHashCode() { if (Displaymode != global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.DisplayMode.Default) hash ^= Displaymode.GetHashCode(); if (HeadingBold != false) hash ^= HeadingBold.GetHashCode(); if (WakeOnTapOrMotion != false) hash ^= WakeOnTapOrMotion.GetHashCode(); + if (CompassOrientation != global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation.Degrees0) hash ^= CompassOrientation.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3906,6 +3932,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(80); output.WriteBool(WakeOnTapOrMotion); } + if (CompassOrientation != global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation.Degrees0) { + output.WriteRawTag(88); + output.WriteEnum((int) CompassOrientation); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3956,6 +3986,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(80); output.WriteBool(WakeOnTapOrMotion); } + if (CompassOrientation != global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation.Degrees0) { + output.WriteRawTag(88); + output.WriteEnum((int) CompassOrientation); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3996,6 +4030,9 @@ public int CalculateSize() { if (WakeOnTapOrMotion != false) { size += 1 + 1; } + if (CompassOrientation != global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation.Degrees0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CompassOrientation); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4038,6 +4075,9 @@ public void MergeFrom(DisplayConfig other) { if (other.WakeOnTapOrMotion != false) { WakeOnTapOrMotion = other.WakeOnTapOrMotion; } + if (other.CompassOrientation != global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation.Degrees0) { + CompassOrientation = other.CompassOrientation; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4093,6 +4133,10 @@ public void MergeFrom(pb::CodedInputStream input) { WakeOnTapOrMotion = input.ReadBool(); break; } + case 88: { + CompassOrientation = (global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation) input.ReadEnum(); + break; + } } } #endif @@ -4148,6 +4192,10 @@ public void MergeFrom(pb::CodedInputStream input) { WakeOnTapOrMotion = input.ReadBool(); break; } + case 88: { + CompassOrientation = (global::Meshtastic.Protobufs.Config.Types.DisplayConfig.Types.CompassOrientation) input.ReadEnum(); + break; + } } } } @@ -4269,6 +4317,49 @@ public enum DisplayMode { [pbr::OriginalName("COLOR")] Color = 3, } + public enum CompassOrientation { + /// + /// + /// The compass and the display are in the same orientation. + /// + [pbr::OriginalName("DEGREES_0")] Degrees0 = 0, + /// + /// + /// Rotate the compass by 90 degrees. + /// + [pbr::OriginalName("DEGREES_90")] Degrees90 = 1, + /// + /// + /// Rotate the compass by 180 degrees. + /// + [pbr::OriginalName("DEGREES_180")] Degrees180 = 2, + /// + /// + /// Rotate the compass by 270 degrees. + /// + [pbr::OriginalName("DEGREES_270")] Degrees270 = 3, + /// + /// + /// Don't rotate the compass, but invert the result. + /// + [pbr::OriginalName("DEGREES_0_INVERTED")] Degrees0Inverted = 4, + /// + /// + /// Rotate the compass by 90 degrees and invert. + /// + [pbr::OriginalName("DEGREES_90_INVERTED")] Degrees90Inverted = 5, + /// + /// + /// Rotate the compass by 180 degrees and invert. + /// + [pbr::OriginalName("DEGREES_180_INVERTED")] Degrees180Inverted = 6, + /// + /// + /// Rotate the compass by 270 degrees and invert. + /// + [pbr::OriginalName("DEGREES_270_INVERTED")] Degrees270Inverted = 7, + } + } #endregion @@ -5299,6 +5390,7 @@ public BluetoothConfig(BluetoothConfig other) : this() { enabled_ = other.enabled_; mode_ = other.mode_; fixedPin_ = other.fixedPin_; + deviceLoggingEnabled_ = other.deviceLoggingEnabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -5356,6 +5448,22 @@ public uint FixedPin { } } + /// Field number for the "device_logging_enabled" field. + public const int DeviceLoggingEnabledFieldNumber = 4; + private bool deviceLoggingEnabled_; + /// + /// + /// Enables device (serial style logs) over Bluetooth + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DeviceLoggingEnabled { + get { return deviceLoggingEnabled_; } + set { + deviceLoggingEnabled_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -5374,6 +5482,7 @@ public bool Equals(BluetoothConfig other) { if (Enabled != other.Enabled) return false; if (Mode != other.Mode) return false; if (FixedPin != other.FixedPin) return false; + if (DeviceLoggingEnabled != other.DeviceLoggingEnabled) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5384,6 +5493,7 @@ public override int GetHashCode() { if (Enabled != false) hash ^= Enabled.GetHashCode(); if (Mode != global::Meshtastic.Protobufs.Config.Types.BluetoothConfig.Types.PairingMode.RandomPin) hash ^= Mode.GetHashCode(); if (FixedPin != 0) hash ^= FixedPin.GetHashCode(); + if (DeviceLoggingEnabled != false) hash ^= DeviceLoggingEnabled.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5414,6 +5524,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteUInt32(FixedPin); } + if (DeviceLoggingEnabled != false) { + output.WriteRawTag(32); + output.WriteBool(DeviceLoggingEnabled); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5436,6 +5550,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteUInt32(FixedPin); } + if (DeviceLoggingEnabled != false) { + output.WriteRawTag(32); + output.WriteBool(DeviceLoggingEnabled); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5455,6 +5573,9 @@ public int CalculateSize() { if (FixedPin != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FixedPin); } + if (DeviceLoggingEnabled != false) { + size += 1 + 1; + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5476,6 +5597,9 @@ public void MergeFrom(BluetoothConfig other) { if (other.FixedPin != 0) { FixedPin = other.FixedPin; } + if (other.DeviceLoggingEnabled != false) { + DeviceLoggingEnabled = other.DeviceLoggingEnabled; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5503,6 +5627,10 @@ public void MergeFrom(pb::CodedInputStream input) { FixedPin = input.ReadUInt32(); break; } + case 32: { + DeviceLoggingEnabled = input.ReadBool(); + break; + } } } #endif @@ -5530,6 +5658,10 @@ public void MergeFrom(pb::CodedInputStream input) { FixedPin = input.ReadUInt32(); break; } + case 32: { + DeviceLoggingEnabled = input.ReadBool(); + break; + } } } } diff --git a/Meshtastic/Generated/Mesh.cs b/Meshtastic/Generated/Mesh.cs index e8a726b..1824b27 100644 --- a/Meshtastic/Generated/Mesh.cs +++ b/Meshtastic/Generated/Mesh.cs @@ -129,40 +129,49 @@ static MeshReflection() { "dGljLkhhcmR3YXJlTW9kZWwSGQoRaGFzUmVtb3RlSGFyZHdhcmUYCiABKAgi", "CwoJSGVhcnRiZWF0IlUKFU5vZGVSZW1vdGVIYXJkd2FyZVBpbhIQCghub2Rl", "X251bRgBIAEoDRIqCgNwaW4YAiABKAsyHS5tZXNodGFzdGljLlJlbW90ZUhh", - "cmR3YXJlUGluKtsICg1IYXJkd2FyZU1vZGVsEgkKBVVOU0VUEAASDAoIVExP", - "UkFfVjIQARIMCghUTE9SQV9WMR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yb3JDb2RlEggKBE5PTkUQABIPCgtUWF9XQVRDSERPRxABEhQKEFNMRUVQ", + "X0VOVEVSX1dBSVQQAhIMCghOT19SQURJTxADEg8KC1VOU1BFQ0lGSUVEEAQS", + "FQoRVUJMT1hfVU5JVF9GQUlMRUQQBRINCglOT19BWFAxOTIQBhIZChVJTlZB", + "TElEX1JBRElPX1NFVFRJTkcQBxITCg9UUkFOU01JVF9GQUlMRUQQCBIMCghC", + "Uk9XTk9VVBAJEhIKDlNYMTI2Ml9GQUlMVVJFEAoSEQoNUkFESU9fU1BJX0JV", + "RxALQl8KE2NvbS5nZWVrc3ZpbGxlLm1lc2hCCk1lc2hQcm90b3NaImdpdGh1", + "Yi5jb20vbWVzaHRhc3RpYy9nby9nZW5lcmF0ZWSqAhRNZXNodGFzdGljLlBy", + "b3RvYnVmc7oCAGIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Meshtastic.Protobufs.ChannelReflection.Descriptor, global::Meshtastic.Protobufs.ConfigReflection.Descriptor, global::Meshtastic.Protobufs.ModuleConfigReflection.Descriptor, global::Meshtastic.Protobufs.PortnumsReflection.Descriptor, global::Meshtastic.Protobufs.TelemetryReflection.Descriptor, global::Meshtastic.Protobufs.XmodemReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Meshtastic.Protobufs.HardwareModel), typeof(global::Meshtastic.Protobufs.Constants), typeof(global::Meshtastic.Protobufs.CriticalErrorCode), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -185,7 +194,10 @@ static MeshReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Neighbor), global::Meshtastic.Protobufs.Neighbor.Parser, new[]{ "NodeId", "Snr", "LastRxTime", "NodeBroadcastIntervalSecs" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.DeviceMetadata), global::Meshtastic.Protobufs.DeviceMetadata.Parser, new[]{ "FirmwareVersion", "DeviceStateVersion", "CanShutdown", "HasWifi", "HasBluetooth", "HasEthernet", "Role", "PositionFlags", "HwModel", "HasRemoteHardware" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Heartbeat), global::Meshtastic.Protobufs.Heartbeat.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.NodeRemoteHardwarePin), global::Meshtastic.Protobufs.NodeRemoteHardwarePin.Parser, new[]{ "NodeNum", "Pin" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.NodeRemoteHardwarePin), global::Meshtastic.Protobufs.NodeRemoteHardwarePin.Parser, new[]{ "NodeNum", "Pin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.ChunkedPayload), global::Meshtastic.Protobufs.ChunkedPayload.Parser, new[]{ "PayloadId", "ChunkCount", "ChunkIndex", "PayloadChunk" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.resend_chunks), global::Meshtastic.Protobufs.resend_chunks.Parser, new[]{ "Chunks" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.ChunkedPayloadResponse), global::Meshtastic.Protobufs.ChunkedPayloadResponse.Parser, new[]{ "PayloadId", "RequestTransfer", "AcceptTransfer", "ResendChunks" }, new[]{ "PayloadVariant" }, null, null, null) })); } #endregion @@ -309,6 +321,21 @@ public enum HardwareModel { [pbr::OriginalName("WIPHONE")] Wiphone = 20, /// /// + /// WIO Tracker WM1110 family from Seeed Studio. Includes wio-1110-tracker and wio-1110-sdk + /// + [pbr::OriginalName("WIO_WM1110")] WioWm1110 = 21, + /// + /// + /// RAK2560 Solar base station based on RAK4630 + /// + [pbr::OriginalName("RAK2560")] Rak2560 = 22, + /// + /// + /// Heltec HRU-3601: https://heltec.org/project/hru-3601/ + /// + [pbr::OriginalName("HELTEC_HRU_3601")] HeltecHru3601 = 23, + /// + /// /// B&Q Consulting Station Edition G1: https://uniteng.com/wiki/doku.php?id=meshtastic:station /// [pbr::OriginalName("STATION_G1")] StationG1 = 25, @@ -523,6 +550,11 @@ public enum HardwareModel { [pbr::OriginalName("RADIOMASTER_900_BANDIT_NANO")] Radiomaster900BanditNano = 64, /// /// + /// Heltec Capsule Sensor V3 with ESP32-S3 CPU, Portable LoRa device that can replace GNSS modules or sensors + /// + [pbr::OriginalName("HELTEC_CAPSULE_SENSOR_V3")] HeltecCapsuleSensorV3 = 65, + /// + /// /// ------------------------------------------------------------------------------------------------------------------------------------------ /// Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits. /// ------------------------------------------------------------------------------------------------------------------------------------------ @@ -10050,6 +10082,875 @@ public void MergeFrom(pb::CodedInputStream input) { } + public sealed partial class ChunkedPayload : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChunkedPayload()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Meshtastic.Protobufs.MeshReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChunkedPayload() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChunkedPayload(ChunkedPayload other) : this() { + payloadId_ = other.payloadId_; + chunkCount_ = other.chunkCount_; + chunkIndex_ = other.chunkIndex_; + payloadChunk_ = other.payloadChunk_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChunkedPayload Clone() { + return new ChunkedPayload(this); + } + + /// Field number for the "payload_id" field. + public const int PayloadIdFieldNumber = 1; + private uint payloadId_; + /// + /// + /// The ID of the entire payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PayloadId { + get { return payloadId_; } + set { + payloadId_ = value; + } + } + + /// Field number for the "chunk_count" field. + public const int ChunkCountFieldNumber = 2; + private uint chunkCount_; + /// + /// + /// The total number of chunks in the payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChunkCount { + get { return chunkCount_; } + set { + chunkCount_ = value; + } + } + + /// Field number for the "chunk_index" field. + public const int ChunkIndexFieldNumber = 3; + private uint chunkIndex_; + /// + /// + /// The current chunk index in the total + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ChunkIndex { + get { return chunkIndex_; } + set { + chunkIndex_ = value; + } + } + + /// Field number for the "payload_chunk" field. + public const int PayloadChunkFieldNumber = 4; + private pb::ByteString payloadChunk_ = pb::ByteString.Empty; + /// + /// + /// The binary data of the current chunk + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString PayloadChunk { + get { return payloadChunk_; } + set { + payloadChunk_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChunkedPayload); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChunkedPayload other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PayloadId != other.PayloadId) return false; + if (ChunkCount != other.ChunkCount) return false; + if (ChunkIndex != other.ChunkIndex) return false; + if (PayloadChunk != other.PayloadChunk) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PayloadId != 0) hash ^= PayloadId.GetHashCode(); + if (ChunkCount != 0) hash ^= ChunkCount.GetHashCode(); + if (ChunkIndex != 0) hash ^= ChunkIndex.GetHashCode(); + if (PayloadChunk.Length != 0) hash ^= PayloadChunk.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PayloadId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PayloadId); + } + if (ChunkCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ChunkCount); + } + if (ChunkIndex != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ChunkIndex); + } + if (PayloadChunk.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(PayloadChunk); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PayloadId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PayloadId); + } + if (ChunkCount != 0) { + output.WriteRawTag(16); + output.WriteUInt32(ChunkCount); + } + if (ChunkIndex != 0) { + output.WriteRawTag(24); + output.WriteUInt32(ChunkIndex); + } + if (PayloadChunk.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(PayloadChunk); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PayloadId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PayloadId); + } + if (ChunkCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChunkCount); + } + if (ChunkIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChunkIndex); + } + if (PayloadChunk.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(PayloadChunk); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChunkedPayload other) { + if (other == null) { + return; + } + if (other.PayloadId != 0) { + PayloadId = other.PayloadId; + } + if (other.ChunkCount != 0) { + ChunkCount = other.ChunkCount; + } + if (other.ChunkIndex != 0) { + ChunkIndex = other.ChunkIndex; + } + if (other.PayloadChunk.Length != 0) { + PayloadChunk = other.PayloadChunk; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PayloadId = input.ReadUInt32(); + break; + } + case 16: { + ChunkCount = input.ReadUInt32(); + break; + } + case 24: { + ChunkIndex = input.ReadUInt32(); + break; + } + case 34: { + PayloadChunk = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PayloadId = input.ReadUInt32(); + break; + } + case 16: { + ChunkCount = input.ReadUInt32(); + break; + } + case 24: { + ChunkIndex = input.ReadUInt32(); + break; + } + case 34: { + PayloadChunk = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + /// + /// + /// Wrapper message for broken repeated oneof support + /// + public sealed partial class resend_chunks : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new resend_chunks()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Meshtastic.Protobufs.MeshReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public resend_chunks() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public resend_chunks(resend_chunks other) : this() { + chunks_ = other.chunks_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public resend_chunks Clone() { + return new resend_chunks(this); + } + + /// Field number for the "chunks" field. + public const int ChunksFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_chunks_codec + = pb::FieldCodec.ForUInt32(10); + private readonly pbc::RepeatedField chunks_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Chunks { + get { return chunks_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as resend_chunks); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(resend_chunks other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!chunks_.Equals(other.chunks_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= chunks_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + chunks_.WriteTo(output, _repeated_chunks_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + chunks_.WriteTo(ref output, _repeated_chunks_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += chunks_.CalculateSize(_repeated_chunks_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(resend_chunks other) { + if (other == null) { + return; + } + chunks_.Add(other.chunks_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + chunks_.AddEntriesFrom(input, _repeated_chunks_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + chunks_.AddEntriesFrom(ref input, _repeated_chunks_codec); + break; + } + } + } + } + #endif + + } + + /// + /// + /// Responses to a ChunkedPayload request + /// + public sealed partial class ChunkedPayloadResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChunkedPayloadResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Meshtastic.Protobufs.MeshReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChunkedPayloadResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChunkedPayloadResponse(ChunkedPayloadResponse other) : this() { + payloadId_ = other.payloadId_; + switch (other.PayloadVariantCase) { + case PayloadVariantOneofCase.RequestTransfer: + RequestTransfer = other.RequestTransfer; + break; + case PayloadVariantOneofCase.AcceptTransfer: + AcceptTransfer = other.AcceptTransfer; + break; + case PayloadVariantOneofCase.ResendChunks: + ResendChunks = other.ResendChunks.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChunkedPayloadResponse Clone() { + return new ChunkedPayloadResponse(this); + } + + /// Field number for the "payload_id" field. + public const int PayloadIdFieldNumber = 1; + private uint payloadId_; + /// + /// + /// The ID of the entire payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PayloadId { + get { return payloadId_; } + set { + payloadId_ = value; + } + } + + /// Field number for the "request_transfer" field. + public const int RequestTransferFieldNumber = 2; + /// + /// + /// Request to transfer chunked payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool RequestTransfer { + get { return payloadVariantCase_ == PayloadVariantOneofCase.RequestTransfer ? (bool) payloadVariant_ : false; } + set { + payloadVariant_ = value; + payloadVariantCase_ = PayloadVariantOneofCase.RequestTransfer; + } + } + + /// Field number for the "accept_transfer" field. + public const int AcceptTransferFieldNumber = 3; + /// + /// + /// Accept the transfer chunked payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AcceptTransfer { + get { return payloadVariantCase_ == PayloadVariantOneofCase.AcceptTransfer ? (bool) payloadVariant_ : false; } + set { + payloadVariant_ = value; + payloadVariantCase_ = PayloadVariantOneofCase.AcceptTransfer; + } + } + + /// Field number for the "resend_chunks" field. + public const int ResendChunksFieldNumber = 4; + /// + /// + /// Request missing indexes in the chunked payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Meshtastic.Protobufs.resend_chunks ResendChunks { + get { return payloadVariantCase_ == PayloadVariantOneofCase.ResendChunks ? (global::Meshtastic.Protobufs.resend_chunks) payloadVariant_ : null; } + set { + payloadVariant_ = value; + payloadVariantCase_ = value == null ? PayloadVariantOneofCase.None : PayloadVariantOneofCase.ResendChunks; + } + } + + private object payloadVariant_; + /// Enum of possible cases for the "payload_variant" oneof. + public enum PayloadVariantOneofCase { + None = 0, + RequestTransfer = 2, + AcceptTransfer = 3, + ResendChunks = 4, + } + private PayloadVariantOneofCase payloadVariantCase_ = PayloadVariantOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PayloadVariantOneofCase PayloadVariantCase { + get { return payloadVariantCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPayloadVariant() { + payloadVariantCase_ = PayloadVariantOneofCase.None; + payloadVariant_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChunkedPayloadResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChunkedPayloadResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PayloadId != other.PayloadId) return false; + if (RequestTransfer != other.RequestTransfer) return false; + if (AcceptTransfer != other.AcceptTransfer) return false; + if (!object.Equals(ResendChunks, other.ResendChunks)) return false; + if (PayloadVariantCase != other.PayloadVariantCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PayloadId != 0) hash ^= PayloadId.GetHashCode(); + if (payloadVariantCase_ == PayloadVariantOneofCase.RequestTransfer) hash ^= RequestTransfer.GetHashCode(); + if (payloadVariantCase_ == PayloadVariantOneofCase.AcceptTransfer) hash ^= AcceptTransfer.GetHashCode(); + if (payloadVariantCase_ == PayloadVariantOneofCase.ResendChunks) hash ^= ResendChunks.GetHashCode(); + hash ^= (int) payloadVariantCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PayloadId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PayloadId); + } + if (payloadVariantCase_ == PayloadVariantOneofCase.RequestTransfer) { + output.WriteRawTag(16); + output.WriteBool(RequestTransfer); + } + if (payloadVariantCase_ == PayloadVariantOneofCase.AcceptTransfer) { + output.WriteRawTag(24); + output.WriteBool(AcceptTransfer); + } + if (payloadVariantCase_ == PayloadVariantOneofCase.ResendChunks) { + output.WriteRawTag(34); + output.WriteMessage(ResendChunks); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PayloadId != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PayloadId); + } + if (payloadVariantCase_ == PayloadVariantOneofCase.RequestTransfer) { + output.WriteRawTag(16); + output.WriteBool(RequestTransfer); + } + if (payloadVariantCase_ == PayloadVariantOneofCase.AcceptTransfer) { + output.WriteRawTag(24); + output.WriteBool(AcceptTransfer); + } + if (payloadVariantCase_ == PayloadVariantOneofCase.ResendChunks) { + output.WriteRawTag(34); + output.WriteMessage(ResendChunks); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PayloadId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PayloadId); + } + if (payloadVariantCase_ == PayloadVariantOneofCase.RequestTransfer) { + size += 1 + 1; + } + if (payloadVariantCase_ == PayloadVariantOneofCase.AcceptTransfer) { + size += 1 + 1; + } + if (payloadVariantCase_ == PayloadVariantOneofCase.ResendChunks) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResendChunks); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChunkedPayloadResponse other) { + if (other == null) { + return; + } + if (other.PayloadId != 0) { + PayloadId = other.PayloadId; + } + switch (other.PayloadVariantCase) { + case PayloadVariantOneofCase.RequestTransfer: + RequestTransfer = other.RequestTransfer; + break; + case PayloadVariantOneofCase.AcceptTransfer: + AcceptTransfer = other.AcceptTransfer; + break; + case PayloadVariantOneofCase.ResendChunks: + if (ResendChunks == null) { + ResendChunks = new global::Meshtastic.Protobufs.resend_chunks(); + } + ResendChunks.MergeFrom(other.ResendChunks); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PayloadId = input.ReadUInt32(); + break; + } + case 16: { + RequestTransfer = input.ReadBool(); + break; + } + case 24: { + AcceptTransfer = input.ReadBool(); + break; + } + case 34: { + global::Meshtastic.Protobufs.resend_chunks subBuilder = new global::Meshtastic.Protobufs.resend_chunks(); + if (payloadVariantCase_ == PayloadVariantOneofCase.ResendChunks) { + subBuilder.MergeFrom(ResendChunks); + } + input.ReadMessage(subBuilder); + ResendChunks = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PayloadId = input.ReadUInt32(); + break; + } + case 16: { + RequestTransfer = input.ReadBool(); + break; + } + case 24: { + AcceptTransfer = input.ReadBool(); + break; + } + case 34: { + global::Meshtastic.Protobufs.resend_chunks subBuilder = new global::Meshtastic.Protobufs.resend_chunks(); + if (payloadVariantCase_ == PayloadVariantOneofCase.ResendChunks) { + subBuilder.MergeFrom(ResendChunks); + } + input.ReadMessage(subBuilder); + ResendChunks = subBuilder; + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/Meshtastic/Generated/Telemetry.cs b/Meshtastic/Generated/Telemetry.cs index 6f991bd..9b5e49d 100644 --- a/Meshtastic/Generated/Telemetry.cs +++ b/Meshtastic/Generated/Telemetry.cs @@ -27,46 +27,52 @@ static TelemetryReflection() { "ChptZXNodGFzdGljL3RlbGVtZXRyeS5wcm90bxIKbWVzaHRhc3RpYyKBAQoN", "RGV2aWNlTWV0cmljcxIVCg1iYXR0ZXJ5X2xldmVsGAEgASgNEg8KB3ZvbHRh", "Z2UYAiABKAISGwoTY2hhbm5lbF91dGlsaXphdGlvbhgDIAEoAhITCgthaXJf", - "dXRpbF90eBgEIAEoAhIWCg51cHRpbWVfc2Vjb25kcxgFIAEoDSLaAQoSRW52", + "dXRpbF90eBgEIAEoAhIWCg51cHRpbWVfc2Vjb25kcxgFIAEoDSK2AgoSRW52", "aXJvbm1lbnRNZXRyaWNzEhMKC3RlbXBlcmF0dXJlGAEgASgCEhkKEXJlbGF0", "aXZlX2h1bWlkaXR5GAIgASgCEhsKE2Jhcm9tZXRyaWNfcHJlc3N1cmUYAyAB", "KAISFgoOZ2FzX3Jlc2lzdGFuY2UYBCABKAISDwoHdm9sdGFnZRgFIAEoAhIP", "CgdjdXJyZW50GAYgASgCEgsKA2lhcRgHIAEoDRIQCghkaXN0YW5jZRgIIAEo", - "AhILCgNsdXgYCSABKAISEQoJd2hpdGVfbHV4GAogASgCIowBCgxQb3dlck1l", - "dHJpY3MSEwoLY2gxX3ZvbHRhZ2UYASABKAISEwoLY2gxX2N1cnJlbnQYAiAB", - "KAISEwoLY2gyX3ZvbHRhZ2UYAyABKAISEwoLY2gyX2N1cnJlbnQYBCABKAIS", - "EwoLY2gzX3ZvbHRhZ2UYBSABKAISEwoLY2gzX2N1cnJlbnQYBiABKAIivwIK", - "EUFpclF1YWxpdHlNZXRyaWNzEhUKDXBtMTBfc3RhbmRhcmQYASABKA0SFQoN", - "cG0yNV9zdGFuZGFyZBgCIAEoD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c3ZpbGxl", + "Lm1lc2hCD1RlbGVtZXRyeVByb3Rvc1oiZ2l0aHViLmNvbS9tZXNodGFzdGlj", + "L2dvL2dlbmVyYXRlZKoCFE1lc2h0YXN0aWMuUHJvdG9idWZzugIAYgZwcm90", + "bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Meshtastic.Protobufs.TelemetrySensorType), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.DeviceMetrics), global::Meshtastic.Protobufs.DeviceMetrics.Parser, new[]{ "BatteryLevel", "Voltage", "ChannelUtilization", "AirUtilTx", "UptimeSeconds" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.EnvironmentMetrics), global::Meshtastic.Protobufs.EnvironmentMetrics.Parser, new[]{ "Temperature", "RelativeHumidity", "BarometricPressure", "GasResistance", "Voltage", "Current", "Iaq", "Distance", "Lux", "WhiteLux" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.EnvironmentMetrics), global::Meshtastic.Protobufs.EnvironmentMetrics.Parser, new[]{ "Temperature", "RelativeHumidity", "BarometricPressure", "GasResistance", "Voltage", "Current", "Iaq", "Distance", "Lux", "WhiteLux", "IrLux", "UvLux", "WindDirection", "WindSpeed", "Weight" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.PowerMetrics), global::Meshtastic.Protobufs.PowerMetrics.Parser, new[]{ "Ch1Voltage", "Ch1Current", "Ch2Voltage", "Ch2Current", "Ch3Voltage", "Ch3Current" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.AirQualityMetrics), global::Meshtastic.Protobufs.AirQualityMetrics.Parser, new[]{ "Pm10Standard", "Pm25Standard", "Pm100Standard", "Pm10Environmental", "Pm25Environmental", "Pm100Environmental", "Particles03Um", "Particles05Um", "Particles10Um", "Particles25Um", "Particles50Um", "Particles100Um" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Telemetry), global::Meshtastic.Protobufs.Telemetry.Parser, new[]{ "Time", "DeviceMetrics", "EnvironmentMetrics", "AirQualityMetrics", "PowerMetrics" }, new[]{ "Variant" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Telemetry), global::Meshtastic.Protobufs.Telemetry.Parser, new[]{ "Time", "DeviceMetrics", "EnvironmentMetrics", "AirQualityMetrics", "PowerMetrics" }, new[]{ "Variant" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Meshtastic.Protobufs.Nau7802Config), global::Meshtastic.Protobufs.Nau7802Config.Parser, new[]{ "ZeroOffset", "CalibrationFactor" }, null, null, null, null) })); } #endregion @@ -198,6 +204,16 @@ public enum TelemetrySensorType { /// AHT10 Integrated temperature and humidity sensor /// [pbr::OriginalName("AHT10")] Aht10 = 23, + /// + /// + /// DFRobot Lark Weather station (temperature, humidity, pressure, wind speed and direction) + /// + [pbr::OriginalName("DFROBOT_LARK")] DfrobotLark = 24, + /// + /// + /// NAU7802 Scale Chip or compatible + /// + [pbr::OriginalName("NAU7802")] Nau7802 = 25, } #endregion @@ -612,6 +628,11 @@ public EnvironmentMetrics(EnvironmentMetrics other) : this() { distance_ = other.distance_; lux_ = other.lux_; whiteLux_ = other.whiteLux_; + irLux_ = other.irLux_; + uvLux_ = other.uvLux_; + windDirection_ = other.windDirection_; + windSpeed_ = other.windSpeed_; + weight_ = other.weight_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -782,6 +803,87 @@ public float WhiteLux { } } + /// Field number for the "ir_lux" field. + public const int IrLuxFieldNumber = 11; + private float irLux_; + /// + /// + /// Infrared lux + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float IrLux { + get { return irLux_; } + set { + irLux_ = value; + } + } + + /// Field number for the "uv_lux" field. + public const int UvLuxFieldNumber = 12; + private float uvLux_; + /// + /// + /// Ultraviolet lux + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float UvLux { + get { return uvLux_; } + set { + uvLux_ = value; + } + } + + /// Field number for the "wind_direction" field. + public const int WindDirectionFieldNumber = 13; + private uint windDirection_; + /// + /// + /// Wind direction in degrees + /// 0 degrees = North, 90 = East, etc... + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WindDirection { + get { return windDirection_; } + set { + windDirection_ = value; + } + } + + /// Field number for the "wind_speed" field. + public const int WindSpeedFieldNumber = 14; + private float windSpeed_; + /// + /// + /// Wind speed in m/s + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float WindSpeed { + get { return windSpeed_; } + set { + windSpeed_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 15; + private float weight_; + /// + /// + /// Weight in KG + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Weight { + get { return weight_; } + set { + weight_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -807,6 +909,11 @@ public bool Equals(EnvironmentMetrics other) { if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Lux, other.Lux)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WhiteLux, other.WhiteLux)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(IrLux, other.IrLux)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(UvLux, other.UvLux)) return false; + if (WindDirection != other.WindDirection) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WindSpeed, other.WindSpeed)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -824,6 +931,11 @@ public override int GetHashCode() { if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); if (Lux != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Lux); if (WhiteLux != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WhiteLux); + if (IrLux != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(IrLux); + if (UvLux != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(UvLux); + if (WindDirection != 0) hash ^= WindDirection.GetHashCode(); + if (WindSpeed != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WindSpeed); + if (Weight != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -882,6 +994,26 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(85); output.WriteFloat(WhiteLux); } + if (IrLux != 0F) { + output.WriteRawTag(93); + output.WriteFloat(IrLux); + } + if (UvLux != 0F) { + output.WriteRawTag(101); + output.WriteFloat(UvLux); + } + if (WindDirection != 0) { + output.WriteRawTag(104); + output.WriteUInt32(WindDirection); + } + if (WindSpeed != 0F) { + output.WriteRawTag(117); + output.WriteFloat(WindSpeed); + } + if (Weight != 0F) { + output.WriteRawTag(125); + output.WriteFloat(Weight); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -932,6 +1064,26 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(85); output.WriteFloat(WhiteLux); } + if (IrLux != 0F) { + output.WriteRawTag(93); + output.WriteFloat(IrLux); + } + if (UvLux != 0F) { + output.WriteRawTag(101); + output.WriteFloat(UvLux); + } + if (WindDirection != 0) { + output.WriteRawTag(104); + output.WriteUInt32(WindDirection); + } + if (WindSpeed != 0F) { + output.WriteRawTag(117); + output.WriteFloat(WindSpeed); + } + if (Weight != 0F) { + output.WriteRawTag(125); + output.WriteFloat(Weight); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -972,6 +1124,21 @@ public int CalculateSize() { if (WhiteLux != 0F) { size += 1 + 4; } + if (IrLux != 0F) { + size += 1 + 4; + } + if (UvLux != 0F) { + size += 1 + 4; + } + if (WindDirection != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WindDirection); + } + if (WindSpeed != 0F) { + size += 1 + 4; + } + if (Weight != 0F) { + size += 1 + 4; + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1014,6 +1181,21 @@ public void MergeFrom(EnvironmentMetrics other) { if (other.WhiteLux != 0F) { WhiteLux = other.WhiteLux; } + if (other.IrLux != 0F) { + IrLux = other.IrLux; + } + if (other.UvLux != 0F) { + UvLux = other.UvLux; + } + if (other.WindDirection != 0) { + WindDirection = other.WindDirection; + } + if (other.WindSpeed != 0F) { + WindSpeed = other.WindSpeed; + } + if (other.Weight != 0F) { + Weight = other.Weight; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1069,6 +1251,26 @@ public void MergeFrom(pb::CodedInputStream input) { WhiteLux = input.ReadFloat(); break; } + case 93: { + IrLux = input.ReadFloat(); + break; + } + case 101: { + UvLux = input.ReadFloat(); + break; + } + case 104: { + WindDirection = input.ReadUInt32(); + break; + } + case 117: { + WindSpeed = input.ReadFloat(); + break; + } + case 125: { + Weight = input.ReadFloat(); + break; + } } } #endif @@ -1124,6 +1326,26 @@ public void MergeFrom(pb::CodedInputStream input) { WhiteLux = input.ReadFloat(); break; } + case 93: { + IrLux = input.ReadFloat(); + break; + } + case 101: { + UvLux = input.ReadFloat(); + break; + } + case 104: { + WindDirection = input.ReadUInt32(); + break; + } + case 117: { + WindSpeed = input.ReadFloat(); + break; + } + case 125: { + Weight = input.ReadFloat(); + break; + } } } } @@ -2633,6 +2855,244 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// + /// NAU7802 Telemetry configuration, for saving to flash + /// + public sealed partial class Nau7802Config : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Nau7802Config()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Meshtastic.Protobufs.TelemetryReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Nau7802Config() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Nau7802Config(Nau7802Config other) : this() { + zeroOffset_ = other.zeroOffset_; + calibrationFactor_ = other.calibrationFactor_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Nau7802Config Clone() { + return new Nau7802Config(this); + } + + /// Field number for the "zeroOffset" field. + public const int ZeroOffsetFieldNumber = 1; + private int zeroOffset_; + /// + /// + /// The offset setting for the NAU7802 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ZeroOffset { + get { return zeroOffset_; } + set { + zeroOffset_ = value; + } + } + + /// Field number for the "calibrationFactor" field. + public const int CalibrationFactorFieldNumber = 2; + private float calibrationFactor_; + /// + /// + /// The calibration factor for the NAU7802 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CalibrationFactor { + get { return calibrationFactor_; } + set { + calibrationFactor_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Nau7802Config); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Nau7802Config other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ZeroOffset != other.ZeroOffset) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CalibrationFactor, other.CalibrationFactor)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ZeroOffset != 0) hash ^= ZeroOffset.GetHashCode(); + if (CalibrationFactor != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CalibrationFactor); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ZeroOffset != 0) { + output.WriteRawTag(8); + output.WriteInt32(ZeroOffset); + } + if (CalibrationFactor != 0F) { + output.WriteRawTag(21); + output.WriteFloat(CalibrationFactor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ZeroOffset != 0) { + output.WriteRawTag(8); + output.WriteInt32(ZeroOffset); + } + if (CalibrationFactor != 0F) { + output.WriteRawTag(21); + output.WriteFloat(CalibrationFactor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ZeroOffset != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ZeroOffset); + } + if (CalibrationFactor != 0F) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Nau7802Config other) { + if (other == null) { + return; + } + if (other.ZeroOffset != 0) { + ZeroOffset = other.ZeroOffset; + } + if (other.CalibrationFactor != 0F) { + CalibrationFactor = other.CalibrationFactor; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ZeroOffset = input.ReadInt32(); + break; + } + case 21: { + CalibrationFactor = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ZeroOffset = input.ReadInt32(); + break; + } + case 21: { + CalibrationFactor = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/protobufs b/protobufs index a45a615..1c3029f 160000 --- a/protobufs +++ b/protobufs @@ -1 +1 @@ -Subproject commit a45a6154d0721027bf63f85cfc5abd9f6fab2422 +Subproject commit 1c3029f2868e5fc49809fd378f6c0c66aee0eaf4