mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
добавил wifi версия которая компилируется
This commit is contained in:
9
include/utils/FileUtils.h
Normal file
9
include/utils/FileUtils.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#include "EspFileSystem.h"
|
||||
#include "Global.h"
|
||||
|
||||
extern File seekFile(const String& filename, size_t position = 0);
|
||||
extern const String writeFile(const String& filename, const String& str);
|
||||
extern const String readFile(const String& filename, size_t max_size);
|
||||
extern const String filepath(const String& filename);
|
||||
extern bool cutFile(const String& src, const String& dst);
|
||||
24
include/utils/JsonUtils.h
Normal file
24
include/utils/JsonUtils.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
String jsonReadStr(String& json, String name);
|
||||
int jsonReadInt(String& json, String name);
|
||||
boolean jsonReadBool(String& json, String name);
|
||||
|
||||
String jsonWriteStr(String& json, String name, String value);
|
||||
String jsonWriteInt(String& json, String name, int value);
|
||||
String jsonWriteFloat(String& json, String name, float value);
|
||||
String jsonWriteBool(String& json, String name, boolean value);
|
||||
|
||||
bool jsonRead(String& json, String key, String& value);
|
||||
bool jsonRead(String& json, String key, bool& value);
|
||||
bool jsonRead(String& json, String key, int& value);
|
||||
|
||||
bool jsonWriteStr_(String& json, String name, String value);
|
||||
bool jsonWriteBool_(String& json, String name, bool value);
|
||||
bool jsonWriteInt_(String& json, String name, int value);
|
||||
bool jsonWriteFloat_(String& json, String name, float value);
|
||||
|
||||
void saveConfig();
|
||||
void saveStore();
|
||||
10
include/utils/WiFiUtils.h
Normal file
10
include/utils/WiFiUtils.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
boolean isNetworkActive();
|
||||
void routerConnect();
|
||||
bool startAPMode();
|
||||
boolean RouterFind(String ssid);
|
||||
uint8_t RSSIquality();
|
||||
extern void wifiSignalInit();
|
||||
Reference in New Issue
Block a user