21 lines
360 B
C++
21 lines
360 B
C++
|
#ifndef __BACKEND_HPP__
|
||
|
#define __BACKEND_HPP__
|
||
|
|
||
|
#include <Arduino.h>
|
||
|
#include <ArduinoJson.h>
|
||
|
|
||
|
#include "../include/root_ca.hpp"
|
||
|
|
||
|
extern JsonDocument config;
|
||
|
extern bool isConfigValid;
|
||
|
|
||
|
extern JsonDocument weatherData;
|
||
|
|
||
|
bool parseJsonConfig(String& payload);
|
||
|
bool getConfig();
|
||
|
|
||
|
String urlencode(String str);
|
||
|
|
||
|
bool getWeatherData();
|
||
|
|
||
|
#endif // __BACKEND_HPP__
|