…
This commit is contained in:
parent
a33109f062
commit
364f9c7f31
6 changed files with 188 additions and 12 deletions
14
src/main.rs
14
src/main.rs
|
@ -1,10 +1,18 @@
|
|||
mod cloudlog;
|
||||
mod settings;
|
||||
|
||||
use settings::Settings;
|
||||
use crate::cloudlog::RadioData;
|
||||
|
||||
fn main() {
|
||||
let settings = Settings::new()
|
||||
.expect("Could not read settings.");
|
||||
let settings = Settings::new().expect("Could not read settings.");
|
||||
|
||||
println!("{:?}", settings);
|
||||
let rd = RadioData {
|
||||
key: settings.cloudlog.key,
|
||||
radio: settings.cloudlog.identifier,
|
||||
frequency: String::from("2400170000"),
|
||||
mode: String::from("CW"),
|
||||
};
|
||||
|
||||
cloudlog::upload(&settings.cloudlog.url, &rd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue