Add SSL support

This commit is contained in:
Aram 🍐 2021-07-31 07:00:46 -04:00
parent d78fd8c141
commit 64811b7421
15 changed files with 550 additions and 102 deletions

View file

@ -22,7 +22,7 @@ fn main() -> nut_client::Result<()> {
.with_debug(false) // Turn this on for debugging network chatter
.build();
let mut conn = Connection::new(config)?;
let mut conn = Connection::new(&config)?;
// Print a list of all UPS devices
println!("Connected UPS devices:");