ESPlan/SW/ESPlan_RS485_Relay/ws_server.h

29 lines
743 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 RL_WS_SERVER_H
#define RL_WS_SERVER_H
/*
* ws_server.h HTTP webserver pro rele modul
*
* Stranky:
* GET / Ovladani rele (8 kanalu + hromadne)
* GET /config Konfigurace
* POST /config Ulozeni konfigurace
* POST /relay Akce: on/off/toggle/all_on/all_off
* POST /action Zmena adresy modulu
* GET /api/state JSON se stavem
* GET /api/raw JSON s poslednim RS485 TX/RX
*/
#include <WebServer.h>
#include <Preferences.h>
#include "cfg.h"
#include "mb_client.h"
#include "relay.h"
#include "i18n_str.h"
void webServerBegin(RelayState& state, RelayConfig& cfg,
Preferences& prefs, ModbusClient& mb);
void webServerHandle();
#endif // RL_WS_SERVER_H