repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Power.Active.Import measurand support.
[e-mobility-charging-stations-simulator.git]
/
src
/
utils
/
Constants.js
diff --git
a/src/utils/Constants.js
b/src/utils/Constants.js
index a7ffe4f4578369d8cdd004e9e2116ac872683032..7667738004b954911316a2a7a69793d3038fea6b 100644
(file)
--- a/
src/utils/Constants.js
+++ b/
src/utils/Constants.js
@@
-1,4
+1,4
@@
-class Constants {
+
export default
class Constants {
static REST_RESPONSE_SUCCESS = {status: 'Success'};
static CONN_STATUS_AVAILABLE = 'Available';
static REST_RESPONSE_SUCCESS = {status: 'Success'};
static CONN_STATUS_AVAILABLE = 'Available';
@@
-32,7
+32,7
@@
class Constants {
static ENTITY_LOGGING = 'Logging';
static ENTITY_PRICING = 'Pricing';
static ENTITY_LOGGING = 'Logging';
static ENTITY_PRICING = 'Pricing';
- static NOTIF_TYPE_CHARGING_STATION_CONFIGURATION = 'Configuration';
+ static NOTIF
ICATION
_TYPE_CHARGING_STATION_CONFIGURATION = 'Configuration';
static ACTION_READ = 'Read';
static ACTION_CREATE = 'Create';
static ACTION_READ = 'Read';
static ACTION_CREATE = 'Create';
@@
-101,6
+101,9
@@
class Constants {
static WS_UNSUPPORTED_DATA = 1007;
static WS_UNSUPPORTED_DATA = 1007;
+ static OCPP_RESPONSE_ACCEPTED = {status: 'Accepted'};
+ static OCPP_RESPONSE_REJECTED = {status: 'Rejected'};
+ static OCPP_RESPONSE_REBOOT_REQUIRED = {status: 'RebootRequired'};
static OCPP_SOCKET_TIMEOUT = 60000; // 60 sec
static OCPP_JSON_CALL_MESSAGE = 2; // Client-to-Server
static OCPP_JSON_CALL_RESULT_MESSAGE = 3; // Server-to-Client
static OCPP_SOCKET_TIMEOUT = 60000; // 60 sec
static OCPP_JSON_CALL_MESSAGE = 2; // Client-to-Server
static OCPP_JSON_CALL_RESULT_MESSAGE = 3; // Server-to-Client
@@
-132,6
+135,10
@@
class Constants {
static OCPP_VERSION_15 = '1.5';
static OCPP_VERSION_16 = '1.6';
static OCPP_VERSION_20 = '2.0';
static OCPP_VERSION_15 = '1.5';
static OCPP_VERSION_16 = '1.6';
static OCPP_VERSION_20 = '2.0';
-}
-module.exports = Constants;
+ static STATUS_NOTIFICATION_TIMEOUT = 500;
+ static START_TRANSACTION_TIMEOUT = 500;
+
+ static CHARGING_STATION_DEFAULT_RESET_TIME = 60000; // ms
+ static CHARGING_STATION_ATG_WAIT_TIME = 2000; // ms
+}