ESP-LiveControl  1.99.1
HTTP server, AJAX API backend and Vue.js web application implementing self-contained, zero-install WiFi remote control of hardware modules attached to the Espressif ESP32 SoC
Macros | Functions | Variables
app_main.cpp File Reference

ESP-AJAX-Lab HTTP server, AJAX API backend, web application and Soc hardware drivers for WiFi remote control of the MCPWM hardware modules on the Espressif ESP32 SoC. More...

#include <Arduino.h>
#include "esp32-hal-log.h"
#include <ESPAsyncWebServer.h>
#include "app_config.hpp"
#include "app_state_model.hpp"
#include "wifi_configurator.hpp"
#include "api_server.hpp"
#include "app_controller.hpp"
#include "esp_log.h"
Include dependency graph for app_main.cpp:

Macros

#define LOG_LOCAL_LEVEL   ESP_LOG_DEBUG
 Most configuration settings found here. More...
 

Functions

void update_debug_messages ()
 
void print_debug_messages ()
 
void setup ()
 
void loop ()
 

Variables

auto state = AppState{}
 
auto dns_server = DNSServer{}
 
auto http_backend = AsyncWebServer{state.net_conf.http_tcp_port}
 
auto api_server = APIServer{&http_backend}
 
WiFiConfiguratorwifi_configurator = nullptr
 
auto app_controller = AppController{state, &api_server}
 

Detailed Description

ESP-AJAX-Lab HTTP server, AJAX API backend, web application and Soc hardware drivers for WiFi remote control of the MCPWM hardware modules on the Espressif ESP32 SoC.

Default configuration set up for generating a Phase-Shift-PWM waveform between two pairs of hardware pins. This also features auxiliary measurement and control functions:

License: GPL v.3 U. Lukas 2020-09-30

Macro Definition Documentation

◆ LOG_LOCAL_LEVEL

#define LOG_LOCAL_LEVEL   ESP_LOG_DEBUG

Most configuration settings found here.

Global application state model with default values.

Function Documentation

◆ setup()

void setup ( )

Begin operation of PWM stages etc. This also starts the timer callbacks etc. This will fail if networking etc. is not set up correctly!