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

Fix inconsistent DataUpdate event type identifiers for LPP use cases #137

Merged

Conversation

anjrew
Copy link
Contributor

@anjrew anjrew commented Nov 5, 2024

This pull request resolves inconsistencies in the event type identifiers within usecases/cs/lpp/types.go and usecases/eg/lpp/types.go. The following changes were made:

  • Corrected event type identifiers to align with LPP scenarios instead of LPC scenarios where applicable. This helps ensure the identifiers accurately reflect their use cases and scenarios.
  • Updated DataUpdateHeartbeat in both files to reflect the correct uclppserver and cs-lpp prefixes.

These changes improve code accuracy, documentation and maintain the correct mapping of constants to their respective use cases in the EEBUS library.

@DerAndereAndi
Copy link
Member

Thanks you very much @anjrew ! Much appreciated.

@DerAndereAndi DerAndereAndi merged commit 7fb578c into enbility:dev Nov 5, 2024
4 checks passed
DerAndereAndi added a commit that referenced this pull request Nov 11, 2024
This also allows differentiating between eglpc.DataUpdateHeartbeat and
cslpc.DataUpdateHeartbeat events.

While syncing my branch on dev, I saw
#137 and noticed that the
DataUpdateHeartbeat events for eg/lpc and cs/lpc used the same
identifier which means they can't be differentiated from another over
e.g. json-rpc. I also took the liberty of changing the "uclppserver-"
identifier to "cs-lpp-" to make it consistent with the other event
names.
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