Benchmark

This commit is contained in:
Mit4el
2024-02-26 23:30:04 +03:00
parent b4919bddd6
commit 43887e7408
2 changed files with 31 additions and 1 deletions

21
src/classes/IoTBench.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include "Global.h"
#include "classes/IoTBench.h"
IoTBench::IoTBench(const String &parameters) : IoTItem(parameters)
{
/* int _tx, _rx, _speed, _line;
jsonRead(parameters, "rx", _rx);
jsonRead(parameters, "tx", _tx);
jsonRead(parameters, "speed", _speed);
jsonRead(parameters, "line", _line);
*/
}
void IoTBench::preLoadFunction() {}
void IoTBench::postLoadFunction() {}
void IoTBench::preTaskFunction(const String &id) {}
void IoTBench::postTaskFunction(const String &id) {}
// void IoTBench::uartHandle() {}
IoTBench::~IoTBench() {}

View File

@@ -250,7 +250,16 @@ IoTItem* IoTItem::getTlgrmDriver() {
return nullptr;
}
unsigned long IoTItem::getRtcUnixTime() {
IoTBench *IoTItem::getBenchmarkTask()
{
return nullptr;
}
IoTBench *IoTItem::getBenchmarkLoad()
{
return nullptr;
}
unsigned long IoTItem::getRtcUnixTime()
{
return 0;
}