-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If no changeconfiguration callback is register call the generic one, … #282
If no changeconfiguration callback is register call the generic one, … #282
Conversation
…if present Signed-off-by: Matthias Suess <[email protected]>
…changeconfiguration
lib/ocpp/v16/charge_point.cpp
Outdated
@@ -280,6 +280,11 @@ void ChargePoint::register_configuration_key_changed_callback( | |||
this->charge_point->register_configuration_key_changed_callback(key, callback); | |||
} | |||
|
|||
void ChargePoint::register_configuration_key_changed_callback( | |||
const std::function<void(const CiString<50>& key, const CiString<500>& valuee)>& callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) { |
lib/ocpp/v16/charge_point.cpp
Outdated
@@ -280,6 +280,11 @@ void ChargePoint::register_configuration_key_changed_callback( | |||
this->charge_point->register_configuration_key_changed_callback(key, callback); | |||
} | |||
|
|||
void ChargePoint::register_configuration_key_changed_callback( | |||
const std::function<void(const CiString<50>& key, const CiString<500>& valuee)>& callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) { |
include/ocpp/v16/charge_point.hpp
Outdated
/// \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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void register_configuration_key_changed_callback( | |
void register_generic_configuration_key_changed_callback( |
There was a problem hiding this comment.
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.
include/ocpp/v16/charge_point.hpp
Outdated
@@ -436,6 +436,12 @@ class ChargePoint { | |||
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 |
There was a problem hiding this comment.
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.
…changeconfiguration
Signed-off-by: Matthias Suess <[email protected]>
Signed-off-by: Matthias Suess <[email protected]>
Signed-off-by: Matthias Suess <[email protected]>
Signed-off-by: Matthias Suess <[email protected]>
Signed-off-by: Matthias Suess <[email protected]>
Signed-off-by: Matthias Suess <[email protected]>
Signed-off-by: Matthias Suess <[email protected]>
Signed-off-by: Matthias Suess <[email protected]>
…is specified for the configuration_key_changed_callback Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
…if present