mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
Исправил Uptime и ccs811
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
0;bmp280;tmpid;anydataTemp;Сенсоры;Температура;1;c[1]
|
0;bmp280;tmpid;anydataTemp;Сенсоры;Температура;1;c[1]
|
||||||
0;bmp280;prsid;anydataPress;Сенсоры;Давление;3;c[1];addr[0x76];int[10]*
|
0;bmp280;prsid;anydataPress;Сенсоры;Давление;3;c[1];addr[0x76];int[10]*
|
||||||
0;ccs811;ppmid;anydataPpm;Сенсоры;Содержание#CO2;1;c[1]
|
0;ccs811;ppmid;anydataPpm;Сенсоры;Содержание#CO2;1;c[1]
|
||||||
0;ccs811;ppbid;anydataPpb;Сенсоры;Содержание#орг#соед;2;c[1];int[10]*
|
0;ccs811;ppbid;anydataPpb;Сенсоры;Содержание#орг#соед;2;c[1];addr[0x76];int[10]*
|
||||||
0;impuls-out;impid;na;na;na;order;gpio*
|
0;impuls-out;impid;na;na;na;order;gpio*
|
||||||
0;count-down;cntid;anydata;Таймер;Обратный#отчет;order*
|
0;count-down;cntid;anydata;Таймер;Обратный#отчет;order*
|
||||||
0;inoutput;txtid;anydata;Вывод;Вывод#uart;order*
|
0;inoutput;txtid;anydata;Вывод;Вывод#uart;order*
|
||||||
|
|||||||
Binary file not shown.
@@ -43,7 +43,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "h4",
|
"type": "h4",
|
||||||
"title": "Версия файловой системы: 275"
|
"title": "Версия файловой системы: 276"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "h4",
|
"type": "h4",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define FIRMWARE_VERSION 275
|
#define FIRMWARE_VERSION 276
|
||||||
|
|
||||||
#ifdef esp8266_4mb
|
#ifdef esp8266_4mb
|
||||||
#define FIRMWARE_NAME "esp8266_4mb"
|
#define FIRMWARE_NAME "esp8266_4mb"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ SensorCcs811::SensorCcs811(const paramsCcs811& paramsPpm, const paramsCcs811& pa
|
|||||||
|
|
||||||
ccs811 = new Adafruit_CCS811();
|
ccs811 = new Adafruit_CCS811();
|
||||||
|
|
||||||
if (!ccs811->begin()) SerialPrint("E", "Sensor CCS", "Wire not connected");
|
if (!ccs811->begin(hexStringToUint8(_paramsPpb.addr))) SerialPrint("E", "Sensor CCS", "Wire not connected");
|
||||||
}
|
}
|
||||||
|
|
||||||
SensorCcs811::~SensorCcs811() {}
|
SensorCcs811::~SensorCcs811() {}
|
||||||
|
|||||||
@@ -19,17 +19,17 @@
|
|||||||
#include "Utils/Timings.h"
|
#include "Utils/Timings.h"
|
||||||
#include "Utils/WebUtils.h"
|
#include "Utils/WebUtils.h"
|
||||||
#include "items/ButtonInClass.h"
|
#include "items/ButtonInClass.h"
|
||||||
#include "items/vSensorUptime.h"
|
|
||||||
#include "items/vCountDown.h"
|
#include "items/vCountDown.h"
|
||||||
#include "items/vImpulsOut.h"
|
#include "items/vImpulsOut.h"
|
||||||
#include "items/vLogging.h"
|
#include "items/vLogging.h"
|
||||||
#include "items/vSensorAnalog.h"
|
#include "items/vSensorAnalog.h"
|
||||||
#include "items/vSensorBme280.h"
|
#include "items/vSensorBme280.h"
|
||||||
#include "items/vSensorBmp280.h"
|
#include "items/vSensorBmp280.h"
|
||||||
|
#include "items/vSensorCcs811.h"
|
||||||
#include "items/vSensorDallas.h"
|
#include "items/vSensorDallas.h"
|
||||||
#include "items/vSensorDht.h"
|
#include "items/vSensorDht.h"
|
||||||
#include "items/vSensorUltrasonic.h"
|
#include "items/vSensorUltrasonic.h"
|
||||||
#include "items/vSensorCcs811.h"
|
#include "items/vSensorUptime.h"
|
||||||
|
|
||||||
void not_async_actions();
|
void not_async_actions();
|
||||||
|
|
||||||
@@ -165,4 +165,9 @@ void loop() {
|
|||||||
mySensorCcs811->at(i).loop();
|
mySensorCcs811->at(i).loop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (mySensorUptime != nullptr) {
|
||||||
|
for (unsigned int i = 0; i < mySensorUptime->size(); i++) {
|
||||||
|
mySensorUptime->at(i).loop();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user