Skip to content

Commit

Permalink
remove public_key topic
Browse files Browse the repository at this point in the history
Signed-off-by: Dima Dorezyuk <[email protected]>
  • Loading branch information
Dima Dorezyuk committed Mar 15, 2024
1 parent 7849d74 commit c814bdc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions interfaces/powermeter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ vars:
description: Measured dataset
type: object
$ref: /powermeter#/Powermeter
public_key:
description: Public key of the meter
type: string
9 changes: 0 additions & 9 deletions modules/RsIskraMeter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,15 +834,6 @@ impl generated::OnReadySubscriber for IskraMeter {
print_spec(&ready_state.read_device_model(), "device model");
print_spec(&ready_state.read_device_serial(), "device serial");

let public_key = ready_state.read_public_key();
match public_key {
Ok(public_key) => {
log::info!("Publishing public_key: {}", public_key);
let _ = publishers.meter.public_key(public_key);
}
Err(e) => log::error!("Could not read public_key {:?}", e),
}

let ready_state_clone = ready_state.clone();
let power_meter_clone = publishers.meter.clone();
std::thread::spawn(move || loop {
Expand Down

0 comments on commit c814bdc

Please sign in to comment.