Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPP update and clean up #682

Merged
merged 14 commits into from
Sep 12, 2023
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ lib_deps =
jeremypoulter/ESPAL@0.0.3
jeremypoulter/StreamSpy@0.0.1
jeremypoulter/MicroTasks@0.0.3
matth-x/ArduinoOcpp@0.2.0
matth-x/ArduinoOcppMongoose@0.0.1
https://github.com/matth-x/ArduinoOcpp#00e42d7
https://github.com/matth-x/ArduinoOcppMongoose
matth-x marked this conversation as resolved.
Show resolved Hide resolved
lib_ignore = WebSockets ; ArduinoOcpp: don't compile built-in WS library
extra_scripts =
pre:scripts/auto_fw_version.py
Expand Down
8 changes: 6 additions & 2 deletions src/app_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ String esp_hostname_default = "openevse-"+ESPAL.getShortId();

void config_changed(String name);

ConfigOptDefenition<uint32_t> flagsOpt = ConfigOptDefenition<uint32_t>(flags, CONFIG_SERVICE_SNTP, "flags", "f");
ConfigOptDefenition<uint32_t> flagsOpt = ConfigOptDefenition<uint32_t>(flags,
CONFIG_SERVICE_SNTP |
CONFIG_OCPP_AUTO_AUTH |
CONFIG_OCPP_OFFLINE_AUTH,
jeremypoulter marked this conversation as resolved.
Show resolved Hide resolved
"flags", "f");

ConfigOpt *opts[] =
{
Expand Down Expand Up @@ -183,7 +187,7 @@ ConfigOpt *opts[] =
new ConfigOptDefenition<String>(ocpp_server, "", "ocpp_server", "ows"),
new ConfigOptDefenition<String>(ocpp_chargeBoxId, "", "ocpp_chargeBoxId", "cid"),
new ConfigOptDefenition<String>(ocpp_authkey, "", "ocpp_authkey", "oky"),
new ConfigOptDefenition<String>(ocpp_idtag, "", "ocpp_idtag", "idt"),
new ConfigOptDefenition<String>(ocpp_idtag, "DefaultIdTag", "ocpp_idtag", "idt"),

// Ohm Connect Settings
new ConfigOptDefenition<String>(ohm, "", "ohm", "o"),
Expand Down
Loading
Loading