Allow to disable Reservation module #302
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add build flag
MO_ENABLE_RESERVATION
which allows to disable the Reservation functionality.As a result of disabling the Reservation module, MicroOcpp rejects incoming ReserveNow and CancelReservation messages and does not advertise Reservation support in the SupportedFeatureProfiles configuration. All code is excluded from the compiled firmware, which saves some flash space on top.
To disable Reservation, set the build flag
MO_ENABLE_RESERVATION=0
. The Reservation module is enabled by default, soMO_ENABLE_RESERVATION
doesn't need to be explicitly set to 1 otherwise.Edit (2024-05-21): The initial build flag name
MO_ENABLE_V16_RESERVATION
was changed toMO_ENABLE_RESERVATION
because most likely, there won't be two separate flags for the OCPP 1.6 and 2.0.1 implementation.