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

Added Meter ID/Name to MQTT message. #198

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Conversation

aloralove
Copy link
Collaborator

This PR adds the meter ID directly to the MQTT message, allowing the Rails API to reliably link event files to their corresponding meters. Previously, this link was established by parsing the file path, which proved unreliable due to potential changes in the path structure. Including the meter ID in the message ensures a consistent and reliable reference, improving data integrity and reducing the risk of linkage errors.

…nd reliable reference to link messages -> event files -> meters.
@aloralove aloralove requested a review from teknofire September 6, 2024 17:59
@aloralove aloralove self-assigned this Sep 6, 2024
@teknofire
Copy link
Member

Looks like the bats tests for the scripts need to be updated

@aloralove
Copy link
Collaborator Author

Looks like the bats tests for the scripts need to be updated

The bat tests are now updated with the new changes.

@aloralove aloralove merged commit d28005f into main Sep 6, 2024
1 check passed
@nicolemah99 nicolemah99 deleted the alora/add-meter-mess branch October 29, 2024 16:24
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