diff --git a/NetMeterBusMaster2.cpp b/NetMeterBusMaster2.cpp index e65d52e..b0eebca 100644 --- a/NetMeterBusMaster2.cpp +++ b/NetMeterBusMaster2.cpp @@ -14,6 +14,7 @@ #include #include #include "config.h" +#include "info.h" const uint8_t POWER_LED = 4; @@ -25,6 +26,7 @@ static uint8_t mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEF }; static CmdServer cmdServer(2000); static TestCmd testCmd; static Uptime uptime; +static InfoCmd infoCmd; static MeterBusMaster meterBusMaster; static MqttClient mqttClient(&meterBusMaster); @@ -72,6 +74,7 @@ void setup() { cmdServer.begin(); testCmd.registerYourself(&cmdServer); + infoCmd.registerYourself(&cmdServer); uptime.begin(&cmdServer); overCurrentProt.begin(&cmdServer); diff --git a/info.cpp b/info.cpp index e58db9f..0c24f4b 100644 --- a/info.cpp +++ b/info.cpp @@ -8,6 +8,7 @@ #include +#include #include "info.h" String InfoCmd::exec(String params) {