Skip to content

Add msgCounter to OHPCF result callbacks#231

Merged
sthelen-enqs merged 2 commits into
enbility:devfrom
evcc-io:ohpcf-msgcounter
Jul 8, 2026
Merged

Add msgCounter to OHPCF result callbacks#231
sthelen-enqs merged 2 commits into
enbility:devfrom
evcc-io:ohpcf-msgcounter

Conversation

@andig

@andig andig commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #210 as requested in #210 (comment).

#210 added msgCounter to the result callback for WriteLoadControlLimits (OPEV/OSCEV) and WriteConsumptionLimit/WriteProductionLimit (EG LPC/LPP), but didn't touch OHPCF's SchedulePowerConsumptionProcess/AbortPowerConsumptionProcess/PausePowerConsumptionProcess/ResumePowerConsumptionProcess, leaving the result-callback shape inconsistent across usecases (OHPCF still only gets func(result model.ResultDataType)).

This applies the same change to OHPCF's four write methods and their shared writeSmartEnergyManagementData helper, mirroring #210's pattern exactly.

andig added 2 commits July 7, 2026 10:47
Follow-up to enbility#210, which added msgCounter to WriteLoadControlLimits/
WriteConsumptionLimit/WriteProductionLimit but missed OHPCF's
Schedule/Abort/Pause/ResumePowerConsumptionProcess, leaving the result
callback signature inconsistent across usecases.
@andig

andig commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@sthelen-enqs also had to gofmt the file which #223 omitted.

andig added a commit to evcc-io/evcc that referenced this pull request Jul 7, 2026
enbility/eebus-go#231 adds msgCounter to OHPCF's process-control result
callbacks upstream, closing the inconsistency PR #210 left behind. Pull
in that fix (on top of the still-unmerged MDT patch) and drop the
adapter closures that bridged the old single-arg callback.
@andig andig changed the title Add msgCounter to OHPCF process-control result callbacks Add msgCounter to OHPCF result callbacks Jul 7, 2026

@sthelen-enqs sthelen-enqs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, the two branches for this and OHPCF were run separated for too long so we forgot to update this for OHPCF

@sthelen-enqs sthelen-enqs merged commit 4171b37 into enbility:dev Jul 8, 2026
4 checks passed
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