mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
Uptime
This commit is contained in:
@@ -14,22 +14,6 @@ extern void buttonInSet();
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern void bme280Temp();
|
|
||||||
extern void bme280ReadingTemp();
|
|
||||||
extern void bme280Hum();
|
|
||||||
extern void bme280ReadingHum();
|
|
||||||
extern void bme280Press();
|
|
||||||
extern void bme280ReadingPress();
|
|
||||||
|
|
||||||
extern void bmp280Temp();
|
|
||||||
extern void bmp280ReadingTemp();
|
|
||||||
extern void bmp280Press();
|
|
||||||
extern void bmp280ReadingPress();
|
|
||||||
|
|
||||||
//extern void modbus();
|
|
||||||
//extern void modbusReading();
|
|
||||||
|
|
||||||
extern void sysUptime();
|
|
||||||
extern void uptimeReading();
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
5
include/items/sysUptime.h
Normal file
5
include/items/sysUptime.h
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
extern void sysUptime();
|
||||||
|
extern void uptimeReading();
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
#include "SoftUART.h"
|
#include "SoftUART.h"
|
||||||
//
|
//
|
||||||
|
#include "items/sysUptime.h"
|
||||||
#include "items/vSensorDallas.h"
|
#include "items/vSensorDallas.h"
|
||||||
#include "items/vSensorUltrasonic.h"
|
#include "items/vSensorUltrasonic.h"
|
||||||
#include "items/vButtonOut.h"
|
#include "items/vButtonOut.h"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "Utils/WiFiUtils.h"
|
#include "Utils/WiFiUtils.h"
|
||||||
|
#include "items/sysUptime.h"
|
||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
|
|
||||||
void routerConnect() {
|
void routerConnect() {
|
||||||
@@ -141,6 +141,7 @@ uint8_t RSSIquality() {
|
|||||||
void wifiSignalInit() {
|
void wifiSignalInit() {
|
||||||
ts.add(
|
ts.add(
|
||||||
SYGNAL, 1000 * 60, [&](void*) {
|
SYGNAL, 1000 * 60, [&](void*) {
|
||||||
|
//uptimeReading();
|
||||||
SerialPrint("I", "System", printMemoryStatus());
|
SerialPrint("I", "System", printMemoryStatus());
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
getFSInfo();
|
getFSInfo();
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#include "items/sysUptime.h"
|
||||||
#include "Class/LineParsing.h"
|
#include "Class/LineParsing.h"
|
||||||
#include "BufferExecute.h"
|
#include "BufferExecute.h"
|
||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
@@ -7,7 +8,6 @@ void sysUptime() {
|
|||||||
myLineParsing.update();
|
myLineParsing.update();
|
||||||
String key = myLineParsing.gkey();
|
String key = myLineParsing.gkey();
|
||||||
sCmd.addCommand(key.c_str(), uptimeReading);
|
sCmd.addCommand(key.c_str(), uptimeReading);
|
||||||
//ensorReadingMap30sec += key + ",";
|
|
||||||
myLineParsing.clear();
|
myLineParsing.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user