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
57 lines (33 loc) · 1.44 KB
/
Copy pathOcppEngine.h
File metadata and controls
57 lines (33 loc) · 1.44 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
// matth-x/ESP8266-OCPP
// Copyright Matthias Akstaller 2019 - 2021
// MIT License
#ifndef OCPPENGINE_H
#define OCPPENGINE_H
#include <ArduinoJson.h>
#include <WebSocketsClient.h>
#include <ArduinoOcpp/Core/OcppOperation.h>
#include <ArduinoOcpp/Tasks/SmartCharging/SmartChargingService.h>
#include <ArduinoOcpp/Tasks/ChargePointStatus/ChargePointStatusService.h>
#include <ArduinoOcpp/Tasks/Metering/MeteringService.h>
namespace ArduinoOcpp {
void ocppEngine_initialize(WebSocketsClient *webSocket, int DEFAULT_JSON_DOC_SIZE);
#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();
} //end namespace ArduinoOcpp
#endif