forked from matth-x/MicroOcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvseId.h
More file actions
35 lines (26 loc) · 649 Bytes
/
Copy pathEvseId.h
File metadata and controls
35 lines (26 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// matth-x/MicroOcpp
// Copyright Matthias Akstaller 2019 - 2024
// MIT License
#ifndef MO_EVSEID_H
#define MO_EVSEID_H
#include <MicroOcpp/Version.h>
#if MO_ENABLE_V201
// number of EVSEs. Defaults to MO_NUMCONNECTORS if defined, otherwise to 2
#ifndef MO_NUM_EVSE
#if defined(MO_NUMCONNECTORS)
#define MO_NUM_EVSE MO_NUMCONNECTORS
#else
#define MO_NUM_EVSE 2
#endif
#endif // MO_NUM_EVSE
namespace MicroOcpp {
// EVSEType (2.23)
struct EvseId {
int id;
int connectorId = -1; //optional
EvseId(int id) : id(id) { }
EvseId(int id, int connectorId) : id(id), connectorId(connectorId) { }
};
}
#endif // MO_ENABLE_V201
#endif