-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Feature request: define/override MQTT client identifier #2197
Comments
Try -d |
I don't see how -d could help, please explain. |
I tried whipping a "-d 0" onto one of the clients, same result:
|
The client ID is derived from hostname and device spec. Lines 484 to 488 in e066b66
Either use different hostnames (I guess both are named the default raspberrypi ?) or use a unique -d . Using a serial number is recommended, i.e. rtl_eeprom and -d :myserial .
|
I'm afraid I don't understand how to use the -d properly when it's a USB device. I can use -d 0 and get device 0, but -d :myserial just tanks rtl_433:
Any example I could look at? |
For anyone else... read your rtl_433 serial with rtl_eeprom, then add -d:(that serial number) to one instance to get a different mqtt client identifier. In my case, I added "-d :00000001" to one of the clients to get them to stop bashing each other. |
Scenario: two rtl_433 instances using identical hardware on two different machines talking to the same MQTT server. (It's setup and works, why would I need two?)
Problem: automatically generated mqtt identifiers are identical across both machines, so they take turns killing the other's MQTT session. MQTT sees identical session identifiers and assumes they're duplicate sessions of each other (mosquitto log, machine #1 is 127.0.0.1 and machine #2 is 172.18.0.84):
So need the ability to set/override the MQTT client identifier. I think the current default behavior is good, just need a way to override the default for situations like these.
The text was updated successfully, but these errors were encountered: