Skip to content

Commit

Permalink
WIP Add username and password authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Pidgey27 committed May 17, 2024
1 parent f395d57 commit 1697bbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/sailtrack-kalman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ fn main() {
let filter_mutex = Arc::new(Mutex::new(filter));

// TODO: Add username and password authentication
let mqqt_opts = MqttOptions::new("sailtrack-aggregator", "localhost", 1883);
let mut mqqt_opts = MqttOptions::new("sailtrack-kalman", "192.168.42.1", 1883);
mqqt_opts.set_credentials("mosquitto","sailtrack");

let (client, mut connection) = Client::new(mqqt_opts, 10);
client.subscribe("sensor/gps0", QoS::AtMostOnce).unwrap();
Expand Down

0 comments on commit 1697bbb

Please sign in to comment.