modified configuration.rs

This commit is contained in:
Wyatt J. Miller 2020-01-04 15:16:54 -05:00
parent 8a870556c0
commit bcffec0580
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -16,6 +16,7 @@ use serde_json::Result;
mod app;
mod config;
mod generate;
mod led;
fn main() {
let configuration = config::init_config();