версия для esp32

This commit is contained in:
Dmitry Borisenko
2022-02-14 10:48:14 +01:00
parent 15c55c2df6
commit 5cdcb0f0e6
5 changed files with 15 additions and 10 deletions

View File

@@ -1,6 +1,10 @@
#pragma once
#include "Global.h"
#ifdef ESP8266
#include "ESPAsyncUDP.h"
#else
#include "AsyncUDP.h"
#endif
extern AsyncUDP asyncUdp;
extern const String getThisDevice();

View File

@@ -3,8 +3,15 @@
#include "WsServer.h"
#include "Utils/TimeUtils.h"
#ifdef ESP32
#include <rom/rtc.h>
#endif
extern void periodicTasksInit();
extern void printGlobalVarSize();
extern void handleError(String errorId, String errorValue);
extern void handleError(String errorId, int errorValue);
extern void handleError(String errorId, int errorValue);
extern String ESP_getResetReason(void);
extern String ESP32GetResetReason(uint32_t cpu_no);

View File

@@ -1,6 +1,6 @@
#pragma once
#include "EspFileSystem.h"
#include "Global.h"
#include "EspFileSystem.h"
extern void writeFileUint8tByFrames(const String& filename, uint8_t*& big_buf, size_t length, size_t headerLenth, size_t frameSize);
extern void writeFileUint8tByByte(const String& filename, uint8_t*& payload, size_t length, size_t headerLenth);