Skip to content

Conversation

@james-ctc
Copy link
Member

Describe your changes

OCPP 1.6 obtains configuration from JSON files.
This change creates a ChargePointConfigurationInterface that enables OCPP1.6 to either use the existing JSON files via ChargePointConfiguration or V2 device model (and database) via ChargePointConfigurationDeviceModel

Unit tests have been added to ensure that the same result occurs regardless of which implementation is used.

In addition there is a common ChargePointConfigurationBase base class where shared functionality between the implementations is located. This ensures where possible that the two implementations remain consistent.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

ChargePointConfiguration now inherits from ChargePointConfigurationInterface.
The ChargePointConfigurationInterface implementation can be selected by the
OCPP module in the ChargePoint constructor.

Signed-off-by: James Chapman <[email protected]>
Moved from DeviceModelStorageInterface to DeviceModelInterface

Signed-off-by: James Chapman <[email protected]>
Signed-off-by: James Chapman <[email protected]>
@Pietfried Pietfried added the OCPP label Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants