#ifndef __BACKEND_COMMUNICATION_HPP__ #define __BACKEND_COMMUNICATION_HPP__ #include #include #include "../include/root_ca.hpp" #include "../include/wifi_handler.hpp" class BackendCommunication { public: // Constructor BackendCommunication(WifiHandler& p_wifi_handler); public: // Public methods bool getConfig(); bool getWeatherData(); private: // Private methods bool parseConfig(String& p_payload); bool parseWeatherData(String& p_payload); String urlencode(String str); public: // Public member objects JsonDocument m_config; bool m_is_config_valid; JsonDocument m_weather_data; private: // Private member objects WifiHandler& m_wifi_handler; }; #endif // __BACKEND_COMMUNICATION_HPP__