Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
fe1ae484
Commit
fe1ae484
authored
Feb 08, 2019
by
Micha Mueller
Browse files
Add printConfig to Tester plugin
parent
6f035d24
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/sensors/tester/TesterSensorBase.h
View file @
fe1ae484
...
...
@@ -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_ */
src/sensors/tester/TesterSensorGroup.cpp
View file @
fe1ae484
...
...
@@ -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
;
}
src/sensors/tester/TesterSensorGroup.h
View file @
fe1ae484
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment