ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
constants.hpp
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest
3
4#pragma once
5
6#include <chrono>
7#include <cstdint>
8#include <string>
9
10namespace ocpp {
11
12// Time
13constexpr std::int32_t DAYS_PER_WEEK = 7;
14constexpr std::int32_t HOURS_PER_DAY = 24;
15constexpr std::int32_t SECONDS_PER_HOUR = 3600;
16constexpr std::int32_t SECONDS_PER_DAY = 86400;
17
18constexpr float DEFAULT_LIMIT_AMPS = 48.0;
19constexpr float DEFAULT_LIMIT_WATTS = 33120.0;
20constexpr std::int32_t DEFAULT_AND_MAX_NUMBER_PHASES = 3;
21constexpr float LOW_VOLTAGE = 230;
22
23constexpr float NO_LIMIT_SPECIFIED = -1.0;
24constexpr std::int32_t NO_START_PERIOD = -1;
25constexpr std::int32_t EVSEID_NOT_SET = -1;
26
27constexpr std::chrono::seconds DEFAULT_WAIT_FOR_FUTURE_TIMEOUT = std::chrono::seconds(60);
28
29const std::string VARIABLE_ATTRIBUTE_VALUE_SOURCE_INTERNAL = "internal";
30const std::string VARIABLE_ATTRIBUTE_VALUE_SOURCE_CSMS = "csms";
31
32} // namespace ocpp