Skip to content

Commit

Permalink
don't subscribe to list
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Jul 8, 2024
1 parent f1d3ef3 commit 38a1536
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions miniconf_mqtt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,8 @@ where
fn subscribe(&mut self) -> bool {
let mut settings = self.prefix.clone();
settings.push_str("/settings/#").unwrap();
let mut list = self.prefix.clone();
list.push_str("/list").unwrap();
let opts = SubscriptionOptions::default().ignore_local_messages();
let topics = [
TopicFilter::new(&settings).options(opts),
TopicFilter::new(&list).options(opts),
];

let topics = [TopicFilter::new(&settings).options(opts)];
self.mqtt.client().subscribe(&topics, &[]).is_ok()
}

Expand Down

0 comments on commit 38a1536

Please sign in to comment.