fix(wifi): Guard missing sketches for hosted Wi-Fi

This commit is contained in:
Lucas Saavedra Vaz 2024-11-06 21:25:38 -03:00
parent 32e2230de2
commit 1ecbbae7d3
No known key found for this signature in database
GPG key ID: 9CAE85DC84A38188
4 changed files with 14 additions and 6 deletions

View file

@ -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

View file

@ -1,6 +1,5 @@
{
"requires_any": [
"CONFIG_SOC_WIFI_SUPPORTED=y",
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
"requires": [
"CONFIG_SOC_WIFI_SUPPORTED=y"
]
}

View file

@ -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"

View file

@ -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"
]
}