ESPlan/SW/ESPlan_WeatherStation/ws_server.h

29 lines
722 B
C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef WS_SERVER_H
#define WS_SERVER_H
/*
* ws_server.h HTTP webserver
*
* Stránky:
* GET / Stav snímačů + živá data
* GET /config Konfigurace snímače
* POST /config Uložení konfigurace
* POST /detect Re-detekce snímačů
* POST /action Akce: wind_zero, rain_zero
* GET /api/data JSON s aktuálními daty
* GET /api/status JSON se stavem detekce
*/
#include <WebServer.h>
#include <Preferences.h>
#include "cfg.h"
#include "mb_client.h"
#include "snr.h"
#include "i18n_str.h"
void webServerBegin(SensorData& data, SensorConfig& cfg,
Preferences& prefs, ModbusClient& mb);
void webServerHandle();
#endif // WS_SERVER_H