Skip to content

Conversation

@bWF0dGhpYXMK
Copy link
Contributor

…if present

}

void ChargePoint::register_configuration_key_changed_callback(
const std::function<void(const CiString<50>& key, const CiString<500>& valuee)>& callback) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const std::function<void(const CiString<50>& key, const CiString<500>& valuee)>& callback) {
const std::function<void(const CiString<50>& key, const CiString<500>& value)>& callback) {

}

void ChargePoint::register_configuration_key_changed_callback(
const std::function<void(const CiString<50>& key, const CiString<500>& valuee)>& callback) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const std::function<void(const CiString<50>& key, const CiString<500>& valuee)>& callback) {
const std::function<void(const CiString<50>& key, const CiString<500>& value)>& callback) {

/// \brief registers a \p callback function that can be used to react on changed configuration key. This
/// callback is called when a configuration key has been changed by the CSMS
/// \param callback executed when this configuration key changed
void register_configuration_key_changed_callback(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
void register_configuration_key_changed_callback(
void register_generic_configuration_key_changed_callback(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust other respective members accordingly.

void register_configuration_key_changed_callback(const CiString<50>& key,
const std::function<void(const KeyValue& key_value)>& callback);

/// \brief registers a \p callback function that can be used to react on changed configuration key. This
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust the method docs so to point out that this is a generic callback and that it will only be called in case no specific callback for the key is registered.

Signed-off-by: Matthias Suess <matthias.suess@mail.nidec.com>
Signed-off-by: Matthias Suess <matthias.suess@mail.nidec.com>
Signed-off-by: Matthias Suess <matthias.suess@mail.nidec.com>
Signed-off-by: Matthias Suess <matthias.suess@mail.nidec.com>
Signed-off-by: Matthias Suess <matthias.suess@mail.nidec.com>
Signed-off-by: Matthias Suess <matthias.suess@mail.nidec.com>
MatthiasContribute and others added 5 commits February 22, 2024 05:44
Signed-off-by: Matthias Suess <matthias.suess@mail.nidec.com>
…is specified for the configuration_key_changed_callback

Signed-off-by: pietfried <pietgoempel@gmail.com>
Signed-off-by: pietfried <pietgoempel@gmail.com>
Signed-off-by: pietfried <pietgoempel@gmail.com>
Signed-off-by: pietfried <pietgoempel@gmail.com>
@Pietfried Pietfried merged commit bcfae6d into EVerest:main Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants