Skip to content

Commit

Permalink
fix(wifi): Guard missing sketches for hosted Wi-Fi
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Nov 7, 2024
1 parent 32e2230 commit 1ecbbae
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#include "sdkconfig.h"
#if CONFIG_ESP_WIFI_REMOTE_ENABLED
#error "WPA-Enterprise is only supported in SoCs with native Wi-Fi support"
#endif

#include <WiFi.h> //Wifi library
#define EAP_IDENTITY "login" //if connecting from another corporation, use identity@organization.domain in Eduroam
#define EAP_USERNAME "login" //oftentimes just a repeat of the identity
Expand Down
5 changes: 2 additions & 3 deletions libraries/WiFi/examples/WiFiClientEnterprise/ci.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"requires_any": [
"CONFIG_SOC_WIFI_SUPPORTED=y",
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
"requires": [
"CONFIG_SOC_WIFI_SUPPORTED=y"
]
}
5 changes: 5 additions & 0 deletions libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Note: This sketch takes up a lot of space for the app and may not be able to fla
- for example "No OTA (2MB APP/2MB SPIFFS)"
*/

#include "sdkconfig.h"
#if CONFIG_ESP_WIFI_REMOTE_ENABLED
#error "WiFiProv is only supported in SoCs with native Wi-Fi support"
#endif

#include "WiFiProv.h"
#include "WiFi.h"

Expand Down
5 changes: 2 additions & 3 deletions libraries/WiFiProv/examples/WiFiProv/ci.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"fqbn_append": "PartitionScheme=huge_app",
"requires_any": [
"CONFIG_SOC_WIFI_SUPPORTED=y",
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
"requires": [
"CONFIG_SOC_WIFI_SUPPORTED=y"
]
}

0 comments on commit 1ecbbae

Please sign in to comment.