]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp2): implement ClearCache and Reset OnIdle fixes per audit (CLR-001, CLR-002...
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 23 Feb 2026 22:48:03 +0000 (23:48 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Feb 2026 14:29:56 +0000 (15:29 +0100)
commit70d89a2226f705ee5610f2f70b609d71c6142026
treeb8aabfb2d3292b629108cbcc381e60853f51f194
parent68d3aad2850a80f853a6c7c760e89370967fda81
fix(ocpp2): implement ClearCache and Reset OnIdle fixes per audit (CLR-001, CLR-002, RST-001)

- Override handleRequestClearCache() for OCPP 2.0.1 to use Authorization Cache
- Add AuthCacheEnabled check per C11.FR.04 (return Rejected if disabled)
- Extend Reset OnIdle to check firmware updates and reservations per errata 2.14
- Add comprehensive test coverage for ClearCache spec compliance
- Update base class signature to support async ClearCache in OCPP 2.0.1
- Fix ESLint errors in test file (remove unnecessary conditionals, bind methods)
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/OCPPIncomingRequestService.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ClearCache.test.ts