Skip to content

Commit 1ecbbae

Browse files
committed
fix(wifi): Guard missing sketches for hosted Wi-Fi
1 parent 32e2230 commit 1ecbbae

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

Diff for: libraries/WiFi/examples/WiFiClientEnterprise/WiFiClientEnterprise.ino

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#include "sdkconfig.h"
2+
#if CONFIG_ESP_WIFI_REMOTE_ENABLED
3+
#error "WPA-Enterprise is only supported in SoCs with native Wi-Fi support"
4+
#endif
5+
16
#include <WiFi.h> //Wifi library
27
#define EAP_IDENTITY "login" //if connecting from another corporation, use identity@organization.domain in Eduroam
38
#define EAP_USERNAME "login" //oftentimes just a repeat of the identity

Diff for: libraries/WiFi/examples/WiFiClientEnterprise/ci.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"requires_any": [
3-
"CONFIG_SOC_WIFI_SUPPORTED=y",
4-
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
2+
"requires": [
3+
"CONFIG_SOC_WIFI_SUPPORTED=y"
54
]
65
}

Diff for: libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Note: This sketch takes up a lot of space for the app and may not be able to fla
88
- for example "No OTA (2MB APP/2MB SPIFFS)"
99
*/
1010

11+
#include "sdkconfig.h"
12+
#if CONFIG_ESP_WIFI_REMOTE_ENABLED
13+
#error "WiFiProv is only supported in SoCs with native Wi-Fi support"
14+
#endif
15+
1116
#include "WiFiProv.h"
1217
#include "WiFi.h"
1318

Diff for: libraries/WiFiProv/examples/WiFiProv/ci.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"fqbn_append": "PartitionScheme=huge_app",
3-
"requires_any": [
4-
"CONFIG_SOC_WIFI_SUPPORTED=y",
5-
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
3+
"requires": [
4+
"CONFIG_SOC_WIFI_SUPPORTED=y"
65
]
76
}

0 commit comments

Comments
 (0)