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

OCPP 2.0.1: Make message interval, retries, and timeout configurable at run-time #298

Merged
merged 8 commits into from
Dec 11, 2023

Conversation

valentin-dimov
Copy link
Contributor

No description provided.

@valentin-dimov valentin-dimov force-pushed the feat/ocpp201-configurable-message-queue-parameters branch from 1daff51 to badcc2f Compare December 8, 2023 10:59
@valentin-dimov valentin-dimov marked this pull request as ready for review December 8, 2023 12:59
@valentin-dimov
Copy link
Contributor Author

valentin-dimov commented Dec 8, 2023

Something worth getting a second opinion on: When retrying a transaction-related message after a timeout or CallError, we will:

  • Reuse the same message ID for the retry if retrying due to a timeout;
  • Generate a new message ID for the retry if retrying due to a CallError.

@hikinggrass
Copy link
Contributor

Something worth getting a second opinion on: When retrying a transaction-related message after a timeout or CallError, we will:

* Reuse the same message ID for the retry if retrying due to a timeout;

* Generate a new message ID for the retry if retrying due to a CallError.

That's something we should probably fix, reusing message id's doesn't seem the correct thing to do

@valentin-dimov
Copy link
Contributor Author

Following some more discussion, it was decided that we will indeed re-generate new message IDs for retries, even if the retry was due to a time-out.

@hikinggrass hikinggrass merged commit 89158a1 into main Dec 11, 2023
@hikinggrass hikinggrass deleted the feat/ocpp201-configurable-message-queue-parameters branch December 11, 2023 16:57
couryrr-afs pushed a commit to US-JOET/libocpp that referenced this pull request Dec 18, 2023
…at run-time (EVerest#298)

* feat: make message interval and message retries configurable at runtime for OCPP 2.0.1
* fix: intervals between resending messages are configurable and computed correctly now
* fix: regenerate message IDs when retrying after CallError
* Set default message timeout to 30 seconds.
* fix: do not reuse message IDs, even in case of a timeout

---------

Signed-off-by: Valentin Dimov <[email protected]>
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.

2 participants