Compare commits
3 Commits
462c5f3db7
...
rev2
| Author | SHA1 | Date | |
|---|---|---|---|
| 96341cfd42 | |||
| c432f47dff | |||
| 123f75dd89 |
@@ -11,7 +11,7 @@
|
||||
[platformio]
|
||||
default_envs = ESP32_INA233, ESP32_INA226
|
||||
|
||||
[env]
|
||||
[env:esp32_base]
|
||||
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.32/platform-espressif32.zip
|
||||
board = esp32dev
|
||||
framework = arduino
|
||||
@@ -30,19 +30,21 @@ build_src_flags = -Wall -Wextra
|
||||
|
||||
|
||||
[env:ESP32_INA233]
|
||||
extends = env:esp32_base
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
${env:esp32_base.lib_deps}
|
||||
INA233
|
||||
upload_protocol = espota
|
||||
upload_port = 192.168.5.205
|
||||
|
||||
[env:ESP32_INA226]
|
||||
extends = env:esp32_base
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
${env:esp32_base.lib_deps}
|
||||
robtillaart/INA226@ ~0.6.4
|
||||
upload_protocol = espota
|
||||
upload_port = 192.168.6.47
|
||||
build_flags = ${env.build_flags} -DUSE_INA226
|
||||
upload_port = 192.168.6.45
|
||||
build_flags = ${env:esp32_base.build_flags} -DUSE_INA226
|
||||
|
||||
[env:native]
|
||||
platform = native
|
||||
@@ -50,3 +52,4 @@ build_flags = -DUNIT_TEST -Ilib/fetchOTA/
|
||||
lib_deps =
|
||||
fetchOTA
|
||||
arduino-libraries/ArduinoHttpClient@^0.6.1
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#define water_level_min_key "water_level_min"
|
||||
#define water_level_max_key "water_level_max"
|
||||
#define water_volume_key "water_volume"
|
||||
#define current_software_version Version{2, 1, 0}
|
||||
#define current_software_version Version{2, 2, 0}
|
||||
#define REQUIRED_SPIFFS_VERSION Version{9, 0, 0}
|
||||
|
||||
#define RESISTOR_VALUE 4
|
||||
@@ -71,6 +71,6 @@ void setup_api_endpoints(){
|
||||
};
|
||||
|
||||
xTaskCreate(run_ota_update_task, "RunOTAUpdate", 1024 * 8, (void *)&args, 1, NULL);
|
||||
request->send(SPIFFS, "/update_progress.html", "text/html", false, processor);
|
||||
request->send(LittleFS, "/update_progress.html", "text/html", false, processor);
|
||||
});
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include <LittleFS.h>
|
||||
|
||||
void setup_api_endpoints();
|
||||
Reference in New Issue
Block a user