Skip to content
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

Allow to disable Reservation module #302

Merged
merged 3 commits into from
May 18, 2024
Merged

Conversation

matth-x
Copy link
Owner

@matth-x matth-x commented May 18, 2024

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, so MO_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 to MO_ENABLE_RESERVATION because most likely, there won't be two separate flags for the OCPP 1.6 and 2.0.1 implementation.

@matth-x matth-x merged commit cad22da into main May 18, 2024
5 checks passed
@matth-x matth-x deleted the feature/reservation_switch branch May 18, 2024 20:12
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.

1 participant