-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add dedicated topics support for MQTT configuration #2
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
feat: add dedicated topics support for MQTT configuration #2
Conversation
|
Some additional tasks need to be completed:
|
…cated Topics is enabled. Show "type = {type}" otherwise
…tt topic, use the one from mqttConfig
|
Let me test it ! |
|
The app is crashing on changing topic as you haven't merged #3 in this branch Edit: Okay no need to do this, it will be fine when i merge this into main |
I merged main into this branch to be sure it still works also with the new dependency updates and to test the topic change without crashing the app. Without closing the app, if you use topic 1, connect, disconnect and then change to topic 2 and connect again, look at the mqtt messages, you will more easily the Issue #1 where it will send messages also to the old topic. |
Yes i noticed that issue. I am debugging the app to find the cause ! |

Add the option to publish each sensor on a different MQTT topic.
Some MQTT Dashboard applications such as IoT MQTT Panel do not support to filter the data by the values inside the message and to work properly, they need that the data is published on different topics.
When the option is enabled, it will publish to
android/sensor/{sensorEvent.type}.E.g.: The Magnetometer sensor will publish to
android/sensor/android.sensor.magnetic_fieldTODO: the Settings screenshot in the README.md should be updated.