Skip to content

Commit

Permalink
main: add pv1 and pv2 modules
Browse files Browse the repository at this point in the history
  • Loading branch information
DAMEK86 committed May 29, 2023
1 parent ec38b85 commit 8f65fb9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ async fn rocket() -> _ {
.await
.unwrap();
data.extend(dev_local);

let pv_string1 = "devices:local:pv1";
data.extend(client::Client::extend_process_data_value(
pv_string1,
client.get_process_data_module(pv_string1).await.unwrap(),
));

let pv_string2 = "devices:local:pv2";
data.extend(client::Client::extend_process_data_value(
pv_string2,
client.get_process_data_module(pv_string2).await.unwrap(),
));
let _ = app::write_data(&influx_client, &data).await;

sleep(Duration::from_secs(cfg.polling_interval_sec))
Expand Down

0 comments on commit 8f65fb9

Please sign in to comment.