mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 23:22:19 +03:00
progress of sensors
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "Class/LineParsing.h"
|
||||
#include "Class/SensorConverting.h"
|
||||
#include "Global.h"
|
||||
|
||||
class SensorAnalog : public LineParsing {
|
||||
class SensorAnalog : public LineParsing public SensorConverting {
|
||||
public:
|
||||
SensorAnalog() : LineParsing(){};
|
||||
|
||||
@@ -29,6 +30,8 @@ class SensorAnalog : public LineParsing {
|
||||
eventGen(key, "");
|
||||
jsonWriteInt(configLiveJson, key, value);
|
||||
MqttClient::publishStatus(key, String(value));
|
||||
|
||||
Serial.println("[I] sensor '" + key + "' data: " + String(value));
|
||||
return value;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user