Skip to content

Commit 8ba99fd

Browse files
committed
Add decscription and some more style fixes
Signed-off-by: Marc Emmers <m.emmers@alfen.com>
1 parent 7f41db7 commit 8ba99fd

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

config/v201/component_schemas/standardized/InternalCtrlr.json

+1
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@
550550
"mutability": "ReadOnly"
551551
}
552552
],
553+
"description": "If enabled the metervalues configured with the AlignedDataCtrlr will be rounded to the exact time intervals",
553554
"default": "0",
554555
"type": "boolean"
555556
}

include/ocpp/v201/utils.hpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ namespace utils {
1414
/// \brief std::vector<MeasurandEnum> of the configured AlignedDataMeasurands
1515
std::vector<MeasurandEnum> get_measurands_vec(const std::string& measurands_csv);
1616

17-
///\brief This function determines if any of the \p measurands is present in the \p _meter_value at all
18-
///\return True if any measurand is found, false otherwise
17+
/// \brief This function determines if any of the \p measurands is present in the \p _meter_value at all
18+
/// \return True if any measurand is found, false otherwise
1919
bool meter_value_has_any_measurand(const MeterValue& _meter_value, const std::vector<MeasurandEnum>& measurands);
2020

2121
/// \brief Applies the given \p measurands to the given \p _meter_value . The returned meter value will only contain
@@ -27,12 +27,12 @@ bool meter_value_has_any_measurand(const MeterValue& _meter_value, const std::ve
2727
MeterValue get_meter_value_with_measurands_applied(const MeterValue& _meter_value,
2828
const std::vector<MeasurandEnum>& measurands);
2929

30-
///\brief Applies the given measurands to \p meter_values based on their ReadingContext.
30+
/// \brief Applies the given measurands to \p meter_values based on their ReadingContext.
3131
/// Transaction_Begin, Interruption_Begin, Transaction_End, Interruption_End and Sample_Periodic will be filtered using
3232
/// \p sampled_tx_ended_measurands.
3333
/// Sample_Clock will be filtered using \p aligned_tx_ended_measurands
3434
/// Any metervalue after \p max_timestamp will also be removed.
35-
///\retval filtered meter values
35+
/// \retval filtered meter values
3636
std::vector<MeterValue> get_meter_values_with_measurands_applied(
3737
const std::vector<MeterValue>& meter_values, const std::vector<MeasurandEnum>& sampled_tx_ended_measurands,
3838
const std::vector<MeasurandEnum>& aligned_tx_ended_measurands, ocpp::DateTime max_timestamp);
@@ -47,15 +47,15 @@ TriggerReasonEnum stop_reason_to_trigger_reason_enum(const ReasonEnum& stop_reas
4747
/// \return
4848
std::string sha256(const std::string& str);
4949

50-
/// @brief Return a SHA256 hash generated from a combination of the \p token type and id
51-
/// @param token the token to generate the hash for
52-
/// @return A SHA256 hash string
50+
/// \brief Return a SHA256 hash generated from a combination of the \p token type and id
51+
/// \param token the token to generate the hash for
52+
/// \return A SHA256 hash string
5353
std::string generate_token_hash(const IdToken& token);
5454

55-
/// @brief Align the clock aligned timestamps to the interval values
56-
/// @param timestamp the timestamp to align
57-
/// @param align_interval the clock aligned interval to align to since midnight 00:00
58-
/// @return DateTime type timestamp
55+
/// \brief Align the clock aligned timestamps to the interval values
56+
/// \param timestamp the timestamp to align
57+
/// \param align_interval the clock aligned interval to align to since midnight 00:00
58+
/// \return DateTime type timestamp
5959
ocpp::DateTime align_timestamp(const DateTime timestamp, std::chrono::seconds align_interval);
6060

6161
} // namespace utils

0 commit comments

Comments
 (0)