ShellRechargeSolutionsEU / docile-charge-point

Scriptable OCPP charge point simulator and test tool
GNU General Public License v3.0
82 stars 32 forks source link

GetConfiguration example #10

Closed MaxWagener closed 4 years ago

MaxWagener commented 4 years ago

Hi, anybody got some example scripts to deal with OCPP 1.6 GetConfiguration and ChangeConfiguration? Struggling a bit with the building a proper response to the request.

Would be also great to see some Signed Meter Values examples.

Thanks,

Max

MaxWagener commented 4 years ago

Never mind - was able to fix it ...

expectAllIgnoringUnmatched( getConfigurationReq.respondingWith(GetConfigurationRes( values = List( KeyValue(key = "HeartBeatInterval", readonly = false, value = Option("300")), KeyValue(key = "ConnectionTimeOut", readonly = false, value = Option("300")), KeyValue(key = "MeterValueSampleInterval", readonly = false, value = Option("300"))), unknownKeys = List("ResetRetries","BlinkRepeat","LightIntensity","ConnectorLockFailure","GroundFailure","HighTemperature","Mode3Error","NoError","OtherError","OverCurrentFailure","PowerMeterFailure","PowerSwitchFailure","ReaderFailure"))), changeConfigurationReq.respondingWith(ChangeConfigurationRes(ConfigurationStatus.Accepted)))