Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
This commit is contained in:
30
tools/EVerest-main/modules/EVSE/EvseManager/v2gMessage.hpp
Normal file
30
tools/EVerest-main/modules/EVSE/EvseManager/v2gMessage.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// Copyright Pionix GmbH and Contributors to EVerest
|
||||
#ifndef V2G_MESSAGE_HPP
|
||||
#define V2G_MESSAGE_HPP
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <pugixml.hpp>
|
||||
#include <string>
|
||||
|
||||
namespace module {
|
||||
/*
|
||||
Simple V2G XML message helper
|
||||
*/
|
||||
|
||||
class v2g_message {
|
||||
public:
|
||||
v2g_message();
|
||||
bool from_xml(const std::string& xml);
|
||||
std::string to_xml();
|
||||
void from_json(const std::string& json_str);
|
||||
std::string to_json();
|
||||
|
||||
private:
|
||||
pugi::xml_document doc;
|
||||
nlohmann::json j;
|
||||
};
|
||||
|
||||
} // namespace module
|
||||
|
||||
#endif // V2G_MESSAGE_HPP
|
||||
Reference in New Issue
Block a user