Fix CI Build fail due to missing credentials
This commit is contained in:
parent
512694c09e
commit
c06fe57358
3 changed files with 16 additions and 4 deletions
7
Firmware/include/Credentials/CredentialManager.h
Normal file
7
Firmware/include/Credentials/CredentialManager.h
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#ifndef DEBUG
|
||||||
|
#include <Credentials/Credentials.h>
|
||||||
|
#endif
|
||||||
|
#ifdef DEBUG
|
||||||
|
#define WIFI_SSID "ssid"
|
||||||
|
#define WIFI_PW "password"
|
||||||
|
#endif
|
|
@ -11,13 +11,18 @@
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = Upload_UART
|
default_envs = Upload_UART
|
||||||
|
|
||||||
[env:Upload_UART]
|
[env]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = az-delivery-devkit-v4
|
board = az-delivery-devkit-v4
|
||||||
framework = arduino
|
framework = arduino
|
||||||
upload_port = COM8
|
|
||||||
monitor_port = COM8
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
erropix/ESP32 AnalogWrite@^0.2
|
erropix/ESP32 AnalogWrite@^0.2
|
||||||
ESP Async WebServer
|
ESP Async WebServer
|
||||||
board_build.partitions = huge_app.csv
|
board_build.partitions = huge_app.csv
|
||||||
|
|
||||||
|
[env:Upload_UART]
|
||||||
|
upload_port = COM8
|
||||||
|
monitor_port = COM8
|
||||||
|
|
||||||
|
[env:CI_Build]
|
||||||
|
build_flags = -D DEBUG=1
|
|
@ -7,7 +7,7 @@
|
||||||
#include <esp_spi_flash.h>
|
#include <esp_spi_flash.h>
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
#include <Credentials/Credentials.h>
|
#include <Credentials/CredentialManager.h>
|
||||||
|
|
||||||
const int STEPS = 5;
|
const int STEPS = 5;
|
||||||
const int WIFI_TIMEOUT = 20;
|
const int WIFI_TIMEOUT = 20;
|
||||||
|
|
Loading…
Reference in a new issue