-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// matth-x/MicroOcpp | ||
// Copyright Matthias Akstaller 2019 - 2024 | ||
// MIT License | ||
|
||
#ifndef MO_SETVARIABLES_H | ||
#define MO_SETVARIABLES_H | ||
|
||
#include <MicroOcpp/Version.h> | ||
|
||
#if MO_ENABLE_V201 | ||
|
||
#include <MicroOcpp/Core/Operation.h> | ||
|
||
#include <MicroOcpp/Model/Variables/Variable.h> | ||
|
||
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<DynamicJsonDocument> createConf() override; | ||
|
||
const char *getErrorCode() override {return errorCode;} | ||
|
||
}; | ||
|
||
} //namespace Ocpp201 | ||
} //namespace MicroOcpp | ||
|
||
#endif //MO_ENABLE_V201 | ||
|
||
#endif |