mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-11-29 00:56:21 +00:00
added handler for PUT /config
This commit is contained in:
parent
7b7ecec534
commit
8fed61f78c
4 changed files with 198 additions and 27 deletions
35
src/routes/config.h
Normal file
35
src/routes/config.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#pragma once
|
||||
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include <ESPDMX.h>
|
||||
#include <Preferences.h>
|
||||
|
||||
// #ifndef CONFIG_h
|
||||
// #define CONFIG_h
|
||||
|
||||
extern Preferences config;
|
||||
|
||||
enum IpMethod
|
||||
{
|
||||
Static,
|
||||
DHCP
|
||||
};
|
||||
|
||||
enum Connection
|
||||
{
|
||||
WiFiSta,
|
||||
WiFiAP,
|
||||
Ethernet
|
||||
};
|
||||
|
||||
enum Direction
|
||||
{
|
||||
Input,
|
||||
Output
|
||||
};
|
||||
|
||||
void onGetConfig(String ssid, String pwd, uint32_t ip, uint8_t universe, AsyncWebServerRequest *request);
|
||||
|
||||
void onPutConfig(AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total);
|
||||
|
||||
// #endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue