Skip to content

Commit

Permalink
Initial publish request values implementation for OpenProviderStream
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeling committed Jul 25, 2024
1 parent fbd5fb5 commit 5116fe6
Show file tree
Hide file tree
Showing 9 changed files with 449 additions and 372 deletions.
2 changes: 1 addition & 1 deletion databroker/src/broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::permissions::{PermissionError, Permissions};
pub use crate::types;

use crate::query;
pub use crate::types::{ChangeType, DataType, DataValue, EntryType};
pub use crate::types::{ChangeType, DataType, DataValue, EntryType, ValueFailure};

use tokio::sync::{broadcast, mpsc, RwLock};
use tokio_stream::wrappers::ReceiverStream;
Expand Down
2 changes: 2 additions & 0 deletions databroker/src/grpc/kuksa_val_v1/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ impl From<broker::Datapoint> for Option<proto::Datapoint> {
})),
timestamp: Some(from.ts.into()),
}),
broker::DataValue::ValueFailure(_) => None,
}
}
}
Expand Down Expand Up @@ -231,6 +232,7 @@ impl From<broker::DataValue> for Option<proto::Datapoint> {
})),
timestamp: None,
}),
broker::DataValue::ValueFailure(_) => None,
}
}
}
Expand Down
450 changes: 129 additions & 321 deletions databroker/src/grpc/kuksa_val_v2/conversions.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion databroker/src/grpc/kuksa_val_v2/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (c) 2022 Contributors to the Eclipse Foundation
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down
Loading

0 comments on commit 5116fe6

Please sign in to comment.