Add some debugging messages
This commit is contained in:
parent
6744f7517d
commit
6285300069
4 changed files with 221 additions and 20 deletions
|
@ -1,5 +1,6 @@
|
|||
use crate::cloudlog::RadioData;
|
||||
|
||||
use log::debug;
|
||||
use quick_xml::events::Event;
|
||||
use quick_xml::reader::Reader;
|
||||
use reqwest::{self, header::CONTENT_TYPE, Error};
|
||||
|
@ -20,12 +21,14 @@ pub fn get_radio_data(fl_host: &str, fl_port: &str) -> Result<RadioData, Error>
|
|||
let mode = parse_xml(&mode);
|
||||
let power = parse_xml(&power);
|
||||
|
||||
debug!("freq: {freq} --- mode: {mode} --- power: {power}");
|
||||
|
||||
let radio_data = RadioData {
|
||||
key: String::from(""),
|
||||
radio: String::from(""),
|
||||
frequency: freq,
|
||||
mode: mode,
|
||||
power: power,
|
||||
mode,
|
||||
power,
|
||||
};
|
||||
|
||||
Ok(radio_data)
|
||||
|
|
|
@ -3,11 +3,16 @@ mod flrig;
|
|||
mod settings;
|
||||
|
||||
use std::{thread, time::Duration};
|
||||
use log::debug;
|
||||
|
||||
use crate::cloudlog::RadioData;
|
||||
use settings::Settings;
|
||||
|
||||
fn main() {
|
||||
env_logger::init();
|
||||
|
||||
debug!("clrigctl started.\n");
|
||||
|
||||
let settings = Settings::new().expect("Could not read settings.");
|
||||
|
||||
let mut radio_data_current = RadioData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue