modified configuration.rs
This commit is contained in:
parent
8a870556c0
commit
bcffec0580
@ -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();
|
||||
|
@ -16,6 +16,7 @@ use serde_json::Result;
|
||||
mod app;
|
||||
mod config;
|
||||
mod generate;
|
||||
mod led;
|
||||
|
||||
fn main() {
|
||||
let configuration = config::init_config();
|
||||
|
Loading…
Reference in New Issue
Block a user