fix(wifi): Guard missing sketches for hosted Wi-Fi
This commit is contained in:
parent
32e2230de2
commit
1ecbbae7d3
4 changed files with 14 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"requires_any": [
|
||||
"CONFIG_SOC_WIFI_SUPPORTED=y",
|
||||
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
|
||||
"requires": [
|
||||
"CONFIG_SOC_WIFI_SUPPORTED=y"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue