mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
версия для esp32
This commit is contained in:
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"files.associations": {
|
|
||||||
"ratio": "cpp"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
|
#ifdef ESP8266
|
||||||
#include "ESPAsyncUDP.h"
|
#include "ESPAsyncUDP.h"
|
||||||
|
#else
|
||||||
|
#include "AsyncUDP.h"
|
||||||
|
#endif
|
||||||
extern AsyncUDP asyncUdp;
|
extern AsyncUDP asyncUdp;
|
||||||
|
|
||||||
extern const String getThisDevice();
|
extern const String getThisDevice();
|
||||||
|
|||||||
@@ -3,8 +3,15 @@
|
|||||||
#include "WsServer.h"
|
#include "WsServer.h"
|
||||||
#include "Utils/TimeUtils.h"
|
#include "Utils/TimeUtils.h"
|
||||||
|
|
||||||
|
#ifdef ESP32
|
||||||
|
#include <rom/rtc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
extern void periodicTasksInit();
|
extern void periodicTasksInit();
|
||||||
extern void printGlobalVarSize();
|
extern void printGlobalVarSize();
|
||||||
|
|
||||||
extern void handleError(String errorId, String errorValue);
|
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);
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "EspFileSystem.h"
|
|
||||||
#include "Global.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 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);
|
extern void writeFileUint8tByByte(const String& filename, uint8_t*& payload, size_t length, size_t headerLenth);
|
||||||
|
|||||||
@@ -9,17 +9,15 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = esp8266_4mb
|
default_envs = esp32_4mb
|
||||||
data_dir = data_svelte
|
data_dir = data_svelte
|
||||||
|
|
||||||
[common_env_data]
|
[common_env_data]
|
||||||
lib_deps_external =
|
lib_deps_external =
|
||||||
bblanchon/ArduinoJson @6.18.0
|
bblanchon/ArduinoJson @6.18.0
|
||||||
me-no-dev/ESP Async WebServer
|
me-no-dev/ESP Async WebServer
|
||||||
me-no-dev/ESPAsyncUDP
|
|
||||||
Links2004/WebSockets
|
Links2004/WebSockets
|
||||||
knolleary/PubSubClient
|
knolleary/PubSubClient
|
||||||
|
|
||||||
[env:esp8266_4mb]
|
[env:esp8266_4mb]
|
||||||
build_flags = -Desp8266_4mb="esp8266_4mb"
|
build_flags = -Desp8266_4mb="esp8266_4mb"
|
||||||
framework = arduino
|
framework = arduino
|
||||||
@@ -33,6 +31,7 @@ lib_deps =
|
|||||||
beegee-tokyo/DHT sensor library for ESPx
|
beegee-tokyo/DHT sensor library for ESPx
|
||||||
adafruit/Adafruit BMP280 Library
|
adafruit/Adafruit BMP280 Library
|
||||||
adafruit/Adafruit BME280 Library
|
adafruit/Adafruit BME280 Library
|
||||||
|
me-no-dev/ESPAsyncUDP ;для esp32 данная библиотека встроена в ядро
|
||||||
monitor_filters = esp8266_exception_decoder
|
monitor_filters = esp8266_exception_decoder
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
|
|||||||
Reference in New Issue
Block a user