From 43887e74088167c1f85155feecc9333677e4102d Mon Sep 17 00:00:00 2001 From: Mit4el Date: Mon, 26 Feb 2024 23:30:04 +0300 Subject: [PATCH] Benchmark --- src/classes/IoTBench.cpp | 21 +++++++++++++++++++++ src/classes/IoTItem.cpp | 11 ++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 src/classes/IoTBench.cpp diff --git a/src/classes/IoTBench.cpp b/src/classes/IoTBench.cpp new file mode 100644 index 00000000..236f600b --- /dev/null +++ b/src/classes/IoTBench.cpp @@ -0,0 +1,21 @@ +#include "Global.h" +#include "classes/IoTBench.h" + +IoTBench::IoTBench(const String ¶meters) : 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() {} diff --git a/src/classes/IoTItem.cpp b/src/classes/IoTItem.cpp index ee588dc2..fd078a6f 100644 --- a/src/classes/IoTItem.cpp +++ b/src/classes/IoTItem.cpp @@ -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; }