Переходим с имени key на subtype для IoTSensor

This commit is contained in:
2022-02-01 12:30:13 +03:00
parent 9ec724ccff
commit 71dcd0626b
2 changed files with 7 additions and 7 deletions

View File

@@ -3,17 +3,17 @@
#include "Classes/ScenarioClass3.h"
#include "Classes/IoTSensor.h"
void IoTSensor::init(String key, String id, unsigned long interval) {
void IoTSensor::init(String subtype, String id, unsigned long interval) {
_interval = interval * 1000;
_key = key;
_subtype = subtype;
_id = id;
}
IoTSensor::IoTSensor() {}
IoTSensor::~IoTSensor() {}
String IoTSensor::getKey() {
return _key;
String IoTSensor::getSubtype() {
return _subtype;
}
String IoTSensor::getID() {