Skip to content

Commit 3c22f70

Browse files
committed
Merge branch 'master' of github.com:OpenEVSE/ESP32_WiFi_V3.x into jeremypoulter/issue29
2 parents c84b828 + 75b44b6 commit 3c22f70

File tree

7 files changed

+260
-158
lines changed

7 files changed

+260
-158
lines changed

platformio.ini

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ lib_deps =
3838
jeremypoulter/[email protected]
3939
jeremypoulter/[email protected]
4040
jeremypoulter/[email protected]
41-
42-
matth-x/ArduinoOcppMongoose@0.1.0
43-
lib_ignore = WebSockets ; ArduinoOcpp: don't compile built-in WS library
41+
42+
matth-x/MicroOcppMongoose@1.1.0
43+
lib_ignore = WebSockets ; MicroOcpp: don't compile built-in WS library
4444
extra_scripts =
4545
pre:scripts/auto_fw_version.py
4646
scripts/extra_script.py
@@ -90,11 +90,11 @@ build_flags =
9090
-D MG_ENABLE_SNTP=1
9191
#-D ENABLE_DEBUG_MICROTASKS
9292
-D CS_PLATFORM=CS_P_ESP32
93-
-D AO_CUSTOM_WS ; ArduinoOcpp: don't use built-in WS library
94-
-D AO_CUSTOM_CONSOLE ; ArduinoOcpp: use custom debug out
95-
-D AO_DBG_LEVEL=AO_DL_INFO
96-
-D AO_MG_VERSION_614 ; use MG v6.14
97-
-D AO_CA_CERT_LOCAL ; manage certificate locally
93+
-D MO_CUSTOM_WS ; MicroOcpp: don't use built-in WS library
94+
-D MO_CUSTOM_CONSOLE ; MicroOcpp: use custom debug out
95+
-D MO_DBG_LEVEL=MO_DL_INFO
96+
-D MO_TRAFFIC_OUT
97+
-D MO_MG_VERSION_614 ; use MG v6.14
9898
#-D ENABLE_DEBUG
9999
#-D ENABLE_DEBUG_MONGOOSE_HTTP_CLIENT
100100
-D RAPI_MAX_COMMANDS=20

scripts/extra_script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def make_static(env, target, source, prefix, files_dir):
126126
for out_file in out_files:
127127
filetype = None
128128
compress = out_file.endswith(".gz")
129+
out_file = out_file.replace("\\","/") # Windows: out_file generated with \ as directory separator
129130
if out_file.endswith(".css") or out_file.endswith(".css.gz"):
130131
filetype = "CSS"
131132
elif out_file.endswith(".js") or out_file.endswith(".js.gz"):

src/app_config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,12 @@ void config_changed(String name)
361361
emoncms_updated = true;
362362
}
363363
timeManager.setSntpEnabled(config_sntp_enabled());
364-
ArduinoOcppTask::notifyConfigChanged();
364+
OcppTask::notifyConfigChanged();
365365
evse.setSleepForDisable(!config_pause_uses_disabled());
366366
} else if(name.startsWith("mqtt_")) {
367367
mqtt_restart();
368368
} else if(name.startsWith("ocpp_")) {
369-
ArduinoOcppTask::notifyConfigChanged();
369+
OcppTask::notifyConfigChanged();
370370
} else if(name.startsWith("emoncms_")) {
371371
emoncms_updated = true;
372372
} else if(name.startsWith("scheduler_")) {

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ String currentfirmware = ESCAPEQUOTE(BUILD_TAG);
9292
String buildenv = ESCAPEQUOTE(BUILD_ENV_NAME);
9393
String serial;
9494

95-
ArduinoOcppTask ocpp = ArduinoOcppTask();
95+
OcppTask ocpp = OcppTask();
9696

9797

9898
static void hardware_setup();

0 commit comments

Comments
 (0)