50 lines
1.1 KiB
C
Raw Permalink Normal View History

/**
* @file webui.h
*
* @brief Header file for the web-based user interface (WebUI) in the ChainLube application.
*
* This file contains declarations for functions related to the initialization and processing of the
* web-based user interface (WebUI). It includes the necessary libraries and dependencies for handling
* web server functionality, asynchronous JSON operations, and live debugging through WebSockets.
*
* @author Marcel Peterkau
* @date 09.01.2024
*/
2022-01-08 03:14:26 +01:00
#ifndef _WEBUI_H_
#define _WEBUI_H_
#include <Arduino.h>
#include <FS.h>
#include <LittleFS.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
2022-08-14 17:38:45 +02:00
#include <Updater.h>
#include <ESP8266mDNS.h>
#include <AsyncJson.h>
#include <ArduinoJson.h>
2022-08-14 17:38:45 +02:00
2022-01-10 00:55:04 +01:00
#include "config.h"
#include "globals.h"
#include "dtc.h"
#include "common.h"
2023-02-23 23:14:58 +01:00
#include "debugger.h"
2024-01-09 20:47:28 +01:00
#include "struct2json.h"
2022-01-08 03:14:26 +01:00
typedef enum
{
info,
success,
warning,
error
} NotificationType_t;
2022-01-08 03:14:26 +01:00
void initWebUI();
2023-02-23 23:14:58 +01:00
void Webserver_Process();
void Webserver_Shutdown();
2023-02-23 23:14:58 +01:00
void Websocket_PushLiveDebug(String Message);
void Websocket_PushNotification(String Message, NotificationType_t type);
2022-01-08 03:14:26 +01:00
#endif // _WEBUI_H_