supportedAttributes: [AttributeEnumType.Actual],
variable: 'MaxScheduleEntries',
},
- [buildRegistryKey(OCPP20ComponentName.ISO15118Ctrlr as string, 'OrganizationName')]: {
- component: OCPP20ComponentName.ISO15118Ctrlr as string,
- dataType: DataEnumType.string,
- defaultValue: 'Example Charging Services Ltd',
- description:
- 'The organizationName of the CSO operating the charging station. It is used as the organizationName (O) of the SECC leaf certificate.',
- maxLength: 64,
- mutability: MutabilityEnumType.ReadWrite,
- persistence: PersistenceEnumType.Persistent,
- supportedAttributes: [AttributeEnumType.Actual],
- variable: OCPP20RequiredVariableName.OrganizationName,
- },
[buildRegistryKey(OCPP20ComponentName.ISO15118Ctrlr as string, 'PnCEnabled')]: {
component: OCPP20ComponentName.ISO15118Ctrlr as string,
dataType: DataEnumType.boolean,
},
])[0]
assert.strictEqual(res.attributeStatus, GetVariableStatusEnumType.Accepted)
- assert.strictEqual(res.attributeValue, 'Example Charging Services Ltd')
+ assert.strictEqual(res.attributeValue, 'ChangeMeOrg')
const after = getConfigurationKey(
station,
OCPP20RequiredVariableName.OrganizationName as unknown as VariableType['name']
)
assert.notStrictEqual(after, undefined)
- assert.strictEqual(after?.value, 'Example Charging Services Ltd')
+ assert.strictEqual(after?.value, 'ChangeMeOrg')
})
await it('should accept setting OrganizationName and require reboot per OCPP 2.0.1 specification', () => {