Skip to content
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

rtl_433_mqtt_relay: Use id in topic even if there is a channel #3014

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

gdt
Copy link
Collaborator

@gdt gdt commented Jul 29, 2024

Previously, this example program appended /channel if present, and if not present and id was present, appended /id. Typically channel is from an A/B/C switch on the device or fixed for kind of device, and id is from a 16 bit or larger space, sometimes static, and sometimes random on powerup. Using only channel is bad if 1) one has more than one device, or more than 3 if A/B/C or 2) one's neighbor gets such a device. Because it is essentially impossible to rule out point 2, id should always be used.

@zuckschwerdt
Copy link
Collaborator

LGTM.

@zuckschwerdt
Copy link
Collaborator

Note: commit message should be something like
examples: Change mqtt_relay to always use id in topic (#3014)

@gdt
Copy link
Collaborator Author

gdt commented Jul 29, 2024

I find it funnny that you have to open a PR, get the number and then force-push with a new message, but that's easy...

Previously, this example program appended /channel if present, and if
not present and id was present, appended /id.  Typically channel is
from an A/B/C switch on the device or fixed for kind of device, and id
is from a 16 bit or larger space, sometimes static, and sometimes
random on powerup.  Using only channel is bad if 1) one has more than
one device, or more than 3 if A/B/C or 2) one's neighbor gets such a
device.  Because it is essentially impossible to rule out point 2, id
should always be used.
@gdt gdt force-pushed the feature.mqtt-id branch from 9eb6004 to 48ffca7 Compare July 29, 2024 16:58
@gdt gdt merged commit ea7e732 into merbanan:master Jul 29, 2024
8 checks passed
@gdt gdt deleted the feature.mqtt-id branch July 29, 2024 17:04
@zuckschwerdt
Copy link
Collaborator

You can edit the commit message when pressing "Squash and merge", it defaults to the PR title with the id added :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants