// matth-x/ArduinoOcpp // Copyright Matthias Akstaller 2019 - 2021 // MIT License #ifndef OCPPCONNECTION_H #define OCPPCONNECTION_H #include #include #include #include #include namespace ArduinoOcpp { class OcppConnection { private: OcppSocket *ocppSock; std::deque initiatedOcppOperations; std::deque receivedOcppOperations; void handleConfMessage(JsonDocument *json); void handleReqMessage(JsonDocument *json); void handleReqMessage(JsonDocument *json, OcppOperation *op); void handleErrMessage(JsonDocument *json); public: OcppConnection(OcppSocket *ocppSock); void loop(); void initiateOcppOperation(OcppOperation *o); bool processOcppSocketInputTXT(const char* payload, size_t length); }; } //end namespace ArduinoOcpp #endif