-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Add MQTT logging #641
base: master
Are you sure you want to change the base?
Conversation
f047528
to
07f528e
Compare
What's the purpose of |
Is there really no way that you can work on your contributions in your fork and only submit a PR when it's ready for review? Then these "draft PRs" wouldn't clutter my project's PR list which is basically my main ToDo list for this project. And again: I don't entertain any questions before there is an explanation on what is planned to do and how it is planned to do it. Other than that, the questions you ask show that you haven't even made it to chapter 5 in the manual. |
def368a
to
e2a7b16
Compare
First trial shows promising results. I tested with |
e2a7b16
to
d56e749
Compare
No one - including me - knows what parameters you are referring to when you talk abount parameter numbers >= 10020... |
Forward messages to MQTT broker
d56e749
to
7129a74
Compare
Even though it's still in draft, please take note of the following:
Again, please explain what you plan to do before wasting your own time on a PR that I may not accept in the end.
|
if (LoggingMode & CF_LOGMODE_MQTT) { | ||
printlnToDebug(PSTR("Send to MQTT")); | ||
if ((decodedTelegram.prognr != -1) and (!is_query)) { | ||
mqtt_sendtoBroker(-1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you know that the destination address is always the default destination address (that's what -1 stands for in param.dest_addr
)?
if (bus->getBusType() != BUS_PPS) { | ||
if (msg[4+(bus->getBusType()*4)]==TYPE_QUR) is_query = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about TYPE_QINF, TYPE_ACK, TYPE_NACK etc., do you want to log them as well? Do you know the state of decodedTelegram
in these cases?
This has become obsolete now, I think. Thanks for the ideas anyway. |
Forward messages to MQTT broker
Relates to #442
In your
BSB_LAN_config.h
, set