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

fix subscription topic #143

Closed
wants to merge 1 commit into from
Closed

fix subscription topic #143

wants to merge 1 commit into from

Conversation

jordens
Copy link
Member

@jordens jordens commented May 12, 2023

close #142

@jordens jordens changed the title subscribe only to /settings/# fix subscription topic May 12, 2023
@jordens jordens requested a review from ryan-summers May 12, 2023 19:07
let mut settings_topic = self.prefix.clone();
settings_topic.push_str("/#").unwrap();
settings_topic.push_str("/settings/#").unwrap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. The subscription options should have prevented the alive and telemetry messages

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we expect to get the settings prefix and subscribe at the upper level because we parse the commands get/set that occur below the settings tree

fn from_message(topic: &'a str, value: &'a [u8]) -> Result<Self, ()> {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not telemetry. That's a different client. But the alive, yes. Maybe.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right.

@jordens jordens closed this May 12, 2023
@jordens jordens deleted the rj/fix-subscribe branch May 12, 2023 19:28
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.

Interference/problems with miniconf and other mqtt paths
2 participants