forked from matth-x/MicroOcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOcppEngine.h
More file actions
62 lines (36 loc) · 1.53 KB
/
Copy pathOcppEngine.h
File metadata and controls
62 lines (36 loc) · 1.53 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// matth-x/ArduinoOcpp
// Copyright Matthias Akstaller 2019 - 2021
// MIT License
#ifndef OCPPENGINE_H
#define OCPPENGINE_H
#include <ArduinoJson.h>
#include <ArduinoOcpp/Core/OcppOperation.h>
#include <ArduinoOcpp/Core/OcppSocket.h>
#include <ArduinoOcpp/Core/OcppTime.h>
#include <ArduinoOcpp/Tasks/SmartCharging/SmartChargingService.h>
#include <ArduinoOcpp/Tasks/ChargePointStatus/ChargePointStatusService.h>
#include <ArduinoOcpp/Tasks/Metering/MeteringService.h>
namespace ArduinoOcpp {
void ocppEngine_initialize(OcppSocket *ocppSocket);
#if 0
bool processWebSocketEvent(const char* payload, size_t length);
//WebSocket fragments are not supported. This function sends a meaningful error response
boolean processWebSocketUnsupportedEvent(const char* payload, size_t length);
void handleConfMessage(JsonDocument *json);
void handleReqMessage(JsonDocument *json);
void handleReqMessage(JsonDocument *json, OcppOperation *op);
void handleErrMessage(JsonDocument *json);
#endif
void initiateOcppOperation(OcppOperation *o);
void ocppEngine_loop();
void setSmartChargingService(SmartChargingService *scs);
SmartChargingService* getSmartChargingService();
void setChargePointStatusService(ChargePointStatusService *cpss);
ChargePointStatusService *getChargePointStatusService();
ConnectorStatus *getConnectorStatus(int connectorId);
void setMeteringSerivce(MeteringService *meteringService);
MeteringService* getMeteringService();
void ocppEngine_setOcppTime(OcppTime *ocppTime);
OcppTime *getOcppTime();
} //end namespace ArduinoOcpp
#endif