mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
добавил класс стрима массива в сокеты
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
#include "Web.h"
|
||||
#ifdef STANDARD_WEB_SERVER
|
||||
extern void standWebServerInit();
|
||||
|
||||
|
||||
21
include/Web.h
Normal file
21
include/Web.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
|
||||
class StreamJsonArray;
|
||||
|
||||
class StreamJsonArray {
|
||||
public:
|
||||
StreamJsonArray();
|
||||
~StreamJsonArray();
|
||||
|
||||
void sendFile(String path, uint8_t num);
|
||||
|
||||
void loop();
|
||||
|
||||
private:
|
||||
File file;
|
||||
String _path;
|
||||
uint8_t _num;
|
||||
};
|
||||
|
||||
extern StreamJsonArray* myStreamJsonArray;
|
||||
@@ -5,3 +5,4 @@
|
||||
#include "Utils/WiFiUtils.h"
|
||||
#include "AsyncWebServer.h"
|
||||
#include "StandWebServer.h"
|
||||
#include "Web.h"
|
||||
|
||||
Reference in New Issue
Block a user