RTC Driver OK

This commit is contained in:
Emanuele Trabattoni
2025-07-10 17:11:21 +02:00
parent 8f701ce81a
commit 7fd4a284af
4 changed files with 34 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
#include "WS_PCF85063.h"
#include "PCF85063_Driver.h"
#include <ctime>
namespace drivers
@@ -157,6 +157,12 @@ namespace drivers
return false;
}
const std::string PCF85063::getTimeStr() {
datetime_t dt;
readDatetime(dt);
return datetime2str(dt);
}
const std::string PCF85063::datetime2str(datetime_t &datetime)
{
tm dtime;