Добавляем модуль RTC и его поддержку в систему

This commit is contained in:
2023-02-17 20:26:29 +03:00
parent e0b8613c99
commit 1189b7c289
8 changed files with 174 additions and 2 deletions

View File

@@ -55,6 +55,7 @@
*****************************************глобальные объекты классов***************************************************
**********************************************************************************************************************/
extern IoTGpio IoTgpio;
extern IoTItem* rtcItem;
extern TickerScheduler ts;
extern WiFiClient espClient;

View File

@@ -46,6 +46,9 @@ class IoTItem {
bool enableDoByInt = true;
virtual IoTGpio* getGpioDriver();
virtual IoTItem* getRtcDriver();
virtual ulong getRtcUnixTime();
virtual void setValue(const IoTValue& Value, bool genEvent = true);
virtual void setValue(const String& valStr, bool genEvent = true);
String getRoundValue();