diff --git a/src/config.rs b/src/config.rs index 13d25cb..0986799 100644 --- a/src/config.rs +++ b/src/config.rs @@ -5,6 +5,7 @@ extern crate serde_json; use std::fs::File; use std::io::{BufReader, Read}; use std::path::Path; +use std::future::Future; use reqwest::Client; use select::document::Document; @@ -50,7 +51,7 @@ impl Configuration { ipaddr = self.ipaddr, port = self.port ); - + let response = reqwest::get(&request).unwrap(); let document = Document::from_read(response).unwrap(); let next = document.find(Name("power-mode")).next().unwrap(); diff --git a/src/main.rs b/src/main.rs index 0c0b490..5ca92a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,7 @@ use serde_json::Result; mod app; mod config; mod generate; +mod led; fn main() { let configuration = config::init_config();