diff --git a/src/MicroOcpp/Model/Variables/Variable.h b/src/MicroOcpp/Model/Variables/Variable.h index 9ce838f7..c1e5f5c9 100644 --- a/src/MicroOcpp/Model/Variables/Variable.h +++ b/src/MicroOcpp/Model/Variables/Variable.h @@ -2,6 +2,10 @@ // Copyright Matthias Akstaller 2019 - 2024 // MIT License +/* + * Implementation of the UCs B05 - B07 + */ + #ifndef MO_VARIABLE_H #define MO_VARIABLE_H diff --git a/src/MicroOcpp/Operations/SetVariables.h b/src/MicroOcpp/Operations/SetVariables.h new file mode 100644 index 00000000..9895dec4 --- /dev/null +++ b/src/MicroOcpp/Operations/SetVariables.h @@ -0,0 +1,45 @@ +// matth-x/MicroOcpp +// Copyright Matthias Akstaller 2019 - 2024 +// MIT License + +#ifndef MO_SETVARIABLES_H +#define MO_SETVARIABLES_H + +#include + +#if MO_ENABLE_V201 + +#include + +#include + +namespace MicroOcpp { + +namespace Ocpp201 { + +class SetVariables : public Operation { +private: + const char *attributeType = nullptr; + const char *attributeStatus = nullptr; + Variable *variable = nullptr; //contains ptr to `component` + + const char *errorCode = nullptr; +public: + SetVariables(); + + const char* getOperationType() override; + + void processReq(JsonObject payload) override; + + std::unique_ptr createConf() override; + + const char *getErrorCode() override {return errorCode;} + +}; + +} //namespace Ocpp201 +} //namespace MicroOcpp + +#endif //MO_ENABLE_V201 + +#endif