Skip to content

Commit

Permalink
Merge branch 'task/wpa3_constants' into 'master'
Browse files Browse the repository at this point in the history
Task: Added additional case in Wi-Fi authorisation mode enum.

See merge request idf/esp-idf-provisioning-ios!41
  • Loading branch information
shahpiyushv committed Oct 9, 2023
2 parents 6b0ba3c + 85179b3 commit 2940297
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ESPProvision/Proto/wifi_constants.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ public enum Espressif_WifiAuthMode: SwiftProtobuf.Enum {
case wpa2Psk // = 3
case wpaWpa2Psk // = 4
case wpa2Enterprise // = 5
case wpa3Psk // = 6
case wpa2Wpa3Psk // = 7
case UNRECOGNIZED(Int)

public init() {
Expand All @@ -141,6 +143,8 @@ public enum Espressif_WifiAuthMode: SwiftProtobuf.Enum {
case 3: self = .wpa2Psk
case 4: self = .wpaWpa2Psk
case 5: self = .wpa2Enterprise
case 6: self = .wpa3Psk
case 7: self = .wpa2Wpa3Psk
default: self = .UNRECOGNIZED(rawValue)
}
}
Expand All @@ -153,6 +157,8 @@ public enum Espressif_WifiAuthMode: SwiftProtobuf.Enum {
case .wpa2Psk: return 3
case .wpaWpa2Psk: return 4
case .wpa2Enterprise: return 5
case .wpa3Psk: return 6
case .wpa2Wpa3Psk: return 7
case let .UNRECOGNIZED(i): return i
}
}
Expand All @@ -169,6 +175,8 @@ public enum Espressif_WifiAuthMode: SwiftProtobuf.Enum {
.wpa2Psk,
.wpaWpa2Psk,
.wpa2Enterprise,
.wpa3Psk,
.wpa2Wpa3Psk,
]
}

Expand Down Expand Up @@ -222,6 +230,8 @@ extension Espressif_WifiAuthMode: SwiftProtobuf._ProtoNameProviding {
3: .same(proto: "WPA2_PSK"),
4: .same(proto: "WPA_WPA2_PSK"),
5: .same(proto: "WPA2_ENTERPRISE"),
6: .same(proto: "WPA3_PSK"),
7: .same(proto: "WPA2_WPA3_PSK"),
]
}

Expand Down
3 changes: 2 additions & 1 deletion Example/Legacy/proto/wifi_constants.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ enum WifiAuthMode {
WPA2_PSK = 3;
WPA_WPA2_PSK = 4;
WPA2_ENTERPRISE = 5;
WPA3_PSK = 6;
WPA2_WPA3_PSK = 7;
}
message WifiConnectedState {
string ip4_addr = 1;
Expand All @@ -42,4 +44,3 @@ message WifiConnectedState {
bytes bssid = 4;
int32 channel = 5;
}

0 comments on commit 2940297

Please sign in to comment.