mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
some
This commit is contained in:
@@ -1,10 +1,7 @@
|
|||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
|
// Информация о ФС
|
||||||
void getFSInfo() {
|
void getFSInfo() {
|
||||||
// Информация о ФС
|
|
||||||
|
|
||||||
|
|
||||||
FSInfo buf;
|
FSInfo buf;
|
||||||
if (getInfo(buf)) {
|
if (getInfo(buf)) {
|
||||||
SerialPrint("I", F("FS"), F("Get FS info completed"));
|
SerialPrint("I", F("FS"), F("Get FS info completed"));
|
||||||
@@ -17,7 +14,7 @@ void getFSInfo() {
|
|||||||
size_t freeBytes = totalBytes - usedBytes;
|
size_t freeBytes = totalBytes - usedBytes;
|
||||||
float freePer = ((float) freeBytes / totalBytes) * 100;
|
float freePer = ((float) freeBytes / totalBytes) * 100;
|
||||||
|
|
||||||
jsonWriteStr(configSetupJson, F("freeBytes"), String(freePer) + "% (" + String(freeBytes) + ")");
|
jsonWriteStr(configSetupJson, F("freeBytes"), String(freePer) + "% (" + prettyBytes(freeBytes) + ")");
|
||||||
|
|
||||||
SerialPrint("I", F("FS"), "totalBytes=" + String(totalBytes));
|
SerialPrint("I", F("FS"), "totalBytes=" + String(totalBytes));
|
||||||
SerialPrint("I", F("FS"), "usedBytes=" + String(usedBytes));
|
SerialPrint("I", F("FS"), "usedBytes=" + String(usedBytes));
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "Utils/WiFiUtils.h"
|
#include "Utils/WiFiUtils.h"
|
||||||
|
#include "FileSystem.h"
|
||||||
|
|
||||||
void routerConnect() {
|
void routerConnect() {
|
||||||
|
|
||||||
@@ -145,6 +146,7 @@ void wifiSignalInit() {
|
|||||||
ts.add(
|
ts.add(
|
||||||
SYGNAL, 1000 * 60, [&](void*) {
|
SYGNAL, 1000 * 60, [&](void*) {
|
||||||
SerialPrint("I", "System", printMemoryStatus());
|
SerialPrint("I", "System", printMemoryStatus());
|
||||||
|
getFSInfo();
|
||||||
switch (RSSIquality()) {
|
switch (RSSIquality()) {
|
||||||
case 0:
|
case 0:
|
||||||
jsonWriteStr(configSetupJson, F("signal"), F("Уровень WiFi сигнала: <font color='red'>не подключено к роутеру</font>"));
|
jsonWriteStr(configSetupJson, F("signal"), F("Уровень WiFi сигнала: <font color='red'>не подключено к роутеру</font>"));
|
||||||
|
|||||||
Reference in New Issue
Block a user