Handle reboot OCPP params option.
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 18 Oct 2020 14:36:00 +0000 (16:36 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 18 Oct 2020 14:36:00 +0000 (16:36 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.js
src/index.js

index 19841765f7e64e3d9cfa0f7068dc6a455f196402..97bca4a462948a560267957d89c8bea5f8fe8e14 100644 (file)
@@ -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,
       });
     }
   }
index fb54b6c06f1045cce9b41f2caa73d914182a8817..d63d823a10f61ce7817349cf18055debb4c57baf 100644 (file)
@@ -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