Refactored Error Handling in EvseManager
The following SessionEventEnums have been removed from the evse_manager interface:
Error
ErrorCleared
AllErrorsCleared
PermanentFault
PermanentFaultCleared
The EvseManager now uses the error handling provided by the everest-framework to raise/report errors. A PermanentFault error raised by the EvseManager indicates that charging is not possible.
Refactored Error Handling in OCPP and OCPP201 modules
The OCPP modules where listening to the removed SessionEvents and were therefore refactored to be able to retrieve the errors raised by the new mechanism from the everest-framework.
Make use of everest-framework error handling feature in OCPP and OCPP201 modules:
added enable_global_errors to OCPP and OCPP201 module to be able to subscribe to all errors reported in EVerest
added error_mapping.hpp to OCPP module to be able to convert to MREC errors
removed SessionEvent handling for ::Error and ::PermanentFault because this is replaced by subscribing to errors using the new tools of everest-framework
Describe your changes
Refactored Error Handling in EvseManager The following SessionEventEnums have been removed from the evse_manager interface:
The EvseManager now uses the error handling provided by the everest-framework to raise/report errors. A
PermanentFault
error raised by the EvseManager indicates that charging is not possible.Refactored Error Handling in OCPP and OCPP201 modules
The OCPP modules where listening to the removed SessionEvents and were therefore refactored to be able to retrieve the errors raised by the new mechanism from the everest-framework.
Make use of everest-framework error handling feature in OCPP and OCPP201 modules:
Issue ticket number and link
Companion PR in libocpp: https://github.com/EVerest/libocpp/pull/673
Checklist before requesting a review