* is processed by dedicated handler methods that manage charging station state updates.
*
* Response Validation Workflow:
- * 1. Response received from Central System for previously sent request
+ * 1. Response received from Central System for the corresponding request
* 2. Response payload validated against OCPP 1.6 JSON schema
* 3. Response routed to appropriate handler based on original request type
* 4. Charging station state updated based on response content
* components to provide comprehensive protocol support with enhanced features.
*
* Response Validation Workflow:
- * 1. Response received from CSMS for previously sent request
+ * 1. Response received from CSMS for the corresponding request
* 2. Response payload validated against OCPP 2.0+ JSON schema
* 3. Response routed to appropriate handler based on original request type
* 4. Charging station state and variable model updated based on response content
/**
* Check authorization cache for identifier
* @param request - Authorization request containing identifier to look up
- * @param config - Authentication configuration (unused but required by interface)
+ * @param config - Authentication configuration (unused in cache check)
* @returns Cached authorization result if found and not expired; undefined otherwise
*/
private checkAuthCache (
/**
* Check local authorization list for identifier
* @param request - Authorization request containing identifier to look up
- * @param config - Authentication configuration (unused but required by interface)
+ * @param config - Authentication configuration (unused in local list check)
* @returns Authorization result from local list if found; undefined otherwise
*/
private async checkLocalAuthList (
* Create a connector status object with default values
*
* This is the canonical factory for creating ConnectorStatus objects in tests.
- * @param _connectorId - Connector ID (unused, kept for API consistency)
+ * @param _connectorId - Connector ID (unused; factory creates default connector status)
* @param options - Optional overrides for default values
* @returns ConnectorStatus with default or customized values
* @example
await it('should reject removed TimeSource members RTC and Manual', () => {
const res = manager.setVariables(station, [
{
- attributeValue: 'NTP,GPS,RTC,Manual', // RTC & Manual no longer valid
+ attributeValue: 'NTP,GPS,RTC,Manual', // RTC and Manual are invalid TimeSource values
component: { name: OCPP20ComponentName.ClockCtrlr },
variable: { name: OCPP20RequiredVariableName.TimeSource },
},