kopia lustrzana https://github.com/weetmuts/wmbusmeters
When debugging then also log telegrams.
rodzic
65d49a49ba
commit
be14d0389d
|
@ -28,8 +28,9 @@ Two meter types are supported: multical21 and multical302 (multical302 is still
|
|||
|
||||
Currently the meters are hardcoded for the European default setting that specifies what extra data
|
||||
is sent in the telegrams. If someone has a non-default meter that sends other extra data, then this
|
||||
will show up as a warning when a long telegram is received (but not in the short telegrams!).
|
||||
If this should happen, then we need to implement a way to pass the meter configuration as a parameter.
|
||||
will show up as a warning when a long telegram is received (but not in the short telegrams, where wrong
|
||||
values might be printed instead!).
|
||||
If this happens to someone, then we need to implement a way to pass the meter configuration as a parameter.
|
||||
|
||||
No meter quadruplets means listen for telegram traffic and print any id heard.
|
||||
|
||||
|
|
2
main.cc
2
main.cc
|
@ -56,8 +56,8 @@ int main(int argc, char **argv)
|
|||
|
||||
warningSilenced(cmdline->silence);
|
||||
verboseEnabled(cmdline->verbose);
|
||||
debugEnabled(cmdline->debug);
|
||||
logTelegramsEnabled(cmdline->logtelegrams);
|
||||
debugEnabled(cmdline->debug);
|
||||
|
||||
auto manager = createSerialCommunicationManager();
|
||||
|
||||
|
|
5
util.cc
5
util.cc
|
@ -133,7 +133,10 @@ void verboseEnabled(bool b) {
|
|||
|
||||
void debugEnabled(bool b) {
|
||||
debug_enabled_ = b;
|
||||
if (debug_enabled_) verbose_enabled_ = true;
|
||||
if (debug_enabled_) {
|
||||
verbose_enabled_ = true;
|
||||
log_telegrams_enabled_ = true;
|
||||
}
|
||||
}
|
||||
|
||||
void logTelegramsEnabled(bool b) {
|
||||
|
|
Ładowanie…
Reference in New Issue