Skip to content

Commit 9b32cef

Browse files
Merge pull request #682 from matth-x/master
OCPP update and clean up
2 parents 3fa2044 + ae8aaa3 commit 9b32cef

File tree

4 files changed

+220
-271
lines changed

4 files changed

+220
-271
lines changed

platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ lib_deps =
3838
jeremypoulter/[email protected]
3939
jeremypoulter/[email protected]
4040
jeremypoulter/[email protected]
41-
matth-x/ArduinoOcpp@0.2.0
42-
matth-x/ArduinoOcppMongoose@0.0.1
41+
matth-x/ArduinoOcpp@0.3.0
42+
matth-x/ArduinoOcppMongoose@0.1.0
4343
lib_ignore = WebSockets ; ArduinoOcpp: don't compile built-in WS library
4444
extra_scripts =
4545
pre:scripts/auto_fw_version.py

src/app_config.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ String esp_hostname_default = "openevse-"+ESPAL.getShortId();
130130

131131
void config_changed(String name);
132132

133-
ConfigOptDefenition<uint32_t> flagsOpt = ConfigOptDefenition<uint32_t>(flags, CONFIG_SERVICE_SNTP, "flags", "f");
133+
ConfigOptDefenition<uint32_t> flagsOpt = ConfigOptDefenition<uint32_t>(flags,
134+
CONFIG_SERVICE_SNTP |
135+
CONFIG_OCPP_AUTO_AUTH |
136+
CONFIG_OCPP_OFFLINE_AUTH,
137+
"flags", "f");
134138

135139
ConfigOpt *opts[] =
136140
{
@@ -183,7 +187,7 @@ ConfigOpt *opts[] =
183187
new ConfigOptDefenition<String>(ocpp_server, "", "ocpp_server", "ows"),
184188
new ConfigOptDefenition<String>(ocpp_chargeBoxId, "", "ocpp_chargeBoxId", "cid"),
185189
new ConfigOptDefenition<String>(ocpp_authkey, "", "ocpp_authkey", "oky"),
186-
new ConfigOptDefenition<String>(ocpp_idtag, "", "ocpp_idtag", "idt"),
190+
new ConfigOptDefenition<String>(ocpp_idtag, "DefaultIdTag", "ocpp_idtag", "idt"),
187191

188192
// Ohm Connect Settings
189193
new ConfigOptDefenition<String>(ohm, "", "ohm", "o"),

0 commit comments

Comments
 (0)