Commit fe1ae484 authored by Micha Mueller's avatar Micha Mueller
Browse files

Add printConfig to Tester plugin

parent 6f035d24
......@@ -16,6 +16,7 @@ public:
TesterSensorBase(const std::string& name) : SensorBase(name) {}
virtual ~TesterSensorBase() {}
void printConfig(LOG_LEVEL ll, LOGGER& lg) { /* nothing to print */ }
};
#endif /* TESTER_TESTERSENSORBASE_H_ */
......@@ -81,3 +81,9 @@ void TesterSensorGroup::readAsync() {
}
_pendingTasks--;
}
void TesterSensorGroup::printConfig(LOG_LEVEL ll) {
LOG_VAR(ll) << " Value: " << _value;
LOG_VAR(ll) << " Num Sensors: " << _numSensors;
LOG_VAR(ll) << " MQTT start: " << _mqttStart;
}
......@@ -29,6 +29,8 @@ public:
std::string getMqttStart() { return _mqttStart; }
unsigned int getNumSensors() { return _numSensors; }
void printConfig(LOG_LEVEL ll) override;
private:
void read() override;
void readAsync() override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment