From: Jérôme Benoit Date: Sun, 18 Oct 2020 14:36:00 +0000 (+0200) Subject: Handle reboot OCPP params option. X-Git-Tag: v1.0.1-0~282 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3497da01c70a699484836f4d122a8cbaf670c44d;p=e-mobility-charging-stations-simulator.git Handle reboot OCPP params option. Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.js b/src/charging-station/ChargingStation.js index 19841765..97bca4a4 100644 --- a/src/charging-station/ChargingStation.js +++ b/src/charging-station/ChargingStation.js @@ -582,7 +582,7 @@ class ChargingStation { return this._configuration.configurationKey.find((configElement) => configElement.key === key); } - _addConfigurationKey(key, value, readonly = false, visible = true) { + _addConfigurationKey(key, value, readonly = false, visible = true, reboot = false) { const keyFound = this._getConfigurationKey(key); if (!keyFound) { this._configuration.configurationKey.push({ @@ -590,6 +590,7 @@ class ChargingStation { readonly, value, visible, + reboot, }); } } diff --git a/src/index.js b/src/index.js index fb54b6c0..d63d823a 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ class Bootstrap { } }); } else { - console.log('No stationURLS defined in configuration, exiting'); + console.log('No stationURLs defined in configuration, exiting'); } } catch (error) { // eslint-disable-next-line no-console