forked from matth-x/MicroOcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOcppMessage.cpp
More file actions
40 lines (30 loc) · 1.21 KB
/
Copy pathOcppMessage.cpp
File metadata and controls
40 lines (30 loc) · 1.21 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
// matth-x/ESP8266-OCPP
// Copyright Matthias Akstaller 2019 - 2021
// MIT License
#include <ArduinoOcpp/Core/OcppMessage.h>
using ArduinoOcpp::OcppMessage;
OcppMessage::OcppMessage(){}
OcppMessage::~OcppMessage(){}
const char* OcppMessage::getOcppOperationType(){
Serial.print(F("[OcppMessage] Unsupported operation: getOcppOperationType() is not implemented!\n"));
return "CustomOperation";
}
DynamicJsonDocument* OcppMessage::createReq() {
Serial.print(F("[OcppMessage] Unsupported operation: createReq() is not implemented!\n"));
return new DynamicJsonDocument(0);
}
void OcppMessage::processConf(JsonObject payload) {
Serial.print(F("[OcppMessage] Unsupported operation: processConf() is not implemented!\n"));
}
void OcppMessage::processReq(JsonObject payload) {
Serial.print(F("[OcppMessage] Unsupported operation: processReq() is not implemented!\n"));
}
DynamicJsonDocument* OcppMessage::createConf() {
Serial.print(F("[OcppMessage] Unsupported operation: createConf() is not implemented!\n"));
return NULL;
}
DynamicJsonDocument *ArduinoOcpp::createEmptyDocument() {
DynamicJsonDocument *emptyDoc = new DynamicJsonDocument(0);
emptyDoc->to<JsonObject>();
return emptyDoc;
}