mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
renaming
This commit is contained in:
@@ -41,7 +41,7 @@ enum LedStatus_t {
|
||||
};
|
||||
|
||||
enum ConfigType_t {
|
||||
CT_MACRO,
|
||||
CT_CONFIG,
|
||||
CT_SCENARIO
|
||||
};
|
||||
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
#define MQTT_RECONNECT_INTERVAL 20000
|
||||
// 1000 * 60 * 60 * 2
|
||||
#define TELEMETRY_UPDATE_INTERVAL 0
|
||||
#define DEVICE_CONFIG_FILE "dev_conf.txt"
|
||||
#define DEVICE_SCENARIO_FILE "dev_scen.txt"
|
||||
#define DEFAULT_PRESET 100
|
||||
#define DEFAULT_SCENARIO 100
|
||||
|
||||
/*
|
||||
* Optional
|
||||
|
||||
@@ -107,6 +107,7 @@ extern boolean mqttParamsChanged;
|
||||
extern boolean udp_data_parse;
|
||||
extern boolean mqtt_send_settings_to_udp;
|
||||
extern boolean i2c_scanning;
|
||||
extern boolean fscheck_flag;
|
||||
|
||||
extern int sensors_reading_map[15];
|
||||
|
||||
@@ -143,19 +144,15 @@ extern void mqttOrderSend();
|
||||
extern void httpOrderSend();
|
||||
extern void firmwareVersion();
|
||||
extern void firmwareUpdate();
|
||||
extern void Scenario_init();
|
||||
extern void txtExecution(String file);
|
||||
extern void stringExecution(String str);
|
||||
|
||||
// i2c_bu
|
||||
extern void do_i2c_scanning();
|
||||
extern String i2c_scan();
|
||||
extern void loadScenario();
|
||||
|
||||
extern void fileExecute(const String& filename);
|
||||
extern void stringExecute(String& cmdStr);
|
||||
// Init
|
||||
extern void loadConfig();
|
||||
extern void All_init();
|
||||
extern void statistics_init();
|
||||
extern void Scenario_init();
|
||||
extern void loadScenario();
|
||||
extern void Device_init();
|
||||
extern void prsets_init();
|
||||
extern void up_time();
|
||||
@@ -245,9 +242,6 @@ extern void UDP_init();
|
||||
extern void do_udp_data_parse();
|
||||
extern void do_mqtt_send_settings_to_udp();
|
||||
|
||||
// WebServer
|
||||
extern void Web_server_init();
|
||||
|
||||
// iot_firmware
|
||||
extern void addCommandLoop(const String& cmdStr);
|
||||
extern void loopSerial();
|
||||
|
||||
@@ -20,37 +20,37 @@ bool fileSystemInit();
|
||||
/*
|
||||
* Удалить файл
|
||||
*/
|
||||
void removeFile(const String filename);
|
||||
void removeFile(const String& filename);
|
||||
|
||||
/*
|
||||
* Открыть файл на позиции
|
||||
*/
|
||||
File seekFile(const String filename, size_t position = 0);
|
||||
File seekFile(const String& filename, size_t position = 0);
|
||||
|
||||
/*
|
||||
* Чтение строки из файла
|
||||
* возвращает стоку из файла в которой есть искомое слово found
|
||||
*/
|
||||
String readFileString(const String filename, const String to_find);
|
||||
const String readFileString(const String& filename, const String& to_find);
|
||||
|
||||
/*
|
||||
* Добовление строки в файл
|
||||
*/
|
||||
String addFile(const String filename, const String str);
|
||||
const String addFile(const String& filename, const String& str);
|
||||
|
||||
/*
|
||||
* Запись строки в файл
|
||||
*/
|
||||
String writeFile(const String filename, const String str);
|
||||
const String writeFile(const String& filename, const String& str);
|
||||
|
||||
/*
|
||||
* Чтение файла в строку
|
||||
*/
|
||||
String readFile(const String filename, size_t max_size);
|
||||
const String readFile(const String& filename, size_t max_size);
|
||||
|
||||
/*
|
||||
* Размер файла
|
||||
*/
|
||||
String getFileSize(const String filename);
|
||||
const String getFileSize(const String& filename);
|
||||
|
||||
bool copyFile(const String src, const String dst, bool overwrite = true);
|
||||
bool copyFile(const String& src, const String& dst, bool overwrite = true);
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
#include "CommonTypes.h"
|
||||
|
||||
const String getPresetFile(uint8_t preset, ConfigType_t type);
|
||||
const String getConfigFile(uint8_t preset, ConfigType_t type);
|
||||
|
||||
const String getItemName(Item_t item);
|
||||
|
||||
const Item_t getPresetItem(uint8_t preset);
|
||||
|
||||
7
include/Utils/i2c_bus.h
Normal file
7
include/Utils/i2c_bus.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
void do_i2c_scanning();
|
||||
|
||||
const String i2c_scan();
|
||||
Reference in New Issue
Block a user