From e212ae5285c4fb04e201f3a5a66215c7314a57f5 Mon Sep 17 00:00:00 2001 From: Soumya Subramanya Date: Mon, 16 Oct 2023 10:11:34 +0200 Subject: [PATCH] Added Mutability type enum Signed-off-by: Soumya Subramanya --- include/ocpp/v201/enums.hpp | 6 ++++++ include/ocpp/v201/ocpp_types.hpp | 1 + 2 files changed, 7 insertions(+) diff --git a/include/ocpp/v201/enums.hpp b/include/ocpp/v201/enums.hpp index 6babfdcddc..7cc21e3475 100644 --- a/include/ocpp/v201/enums.hpp +++ b/include/ocpp/v201/enums.hpp @@ -871,6 +871,12 @@ enum class AttributeEnum { MaxSet, }; +enum class MutabilityEnum { + ReadOnly, + WriteOnly, + ReadWrite +}; + namespace conversions { /// \brief Converts the given AttributeEnum \p e to human readable string /// \returns a string representation of the AttributeEnum diff --git a/include/ocpp/v201/ocpp_types.hpp b/include/ocpp/v201/ocpp_types.hpp index d5ce588343..15bcbb55f1 100644 --- a/include/ocpp/v201/ocpp_types.hpp +++ b/include/ocpp/v201/ocpp_types.hpp @@ -360,6 +360,7 @@ struct GetVariableData { Variable variable; std::optional customData; std::optional attributeType; + std::optional mutabilityType; }; /// \brief Conversion from a given GetVariableData \p k to a given json object \p j void to_json(json& j, const GetVariableData& k);