Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: Change mqtt_relay to always use id in topic (merbanan#3014)
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.
- Loading branch information