提交 754e1c93 authored 作者: Serhij S's avatar Serhij S

eapi state ok

上级 8992d4d5
...@@ -542,6 +542,16 @@ where ...@@ -542,6 +542,16 @@ where
.try_send(PushPayload::State { oid, event }) .try_send(PushPayload::State { oid, event })
.map_err(Into::into) .map_err(Into::into)
} }
/// Pushes a state ok event to the EVA ICS node core, keeping item value unchanged
pub fn state_ok(&self, oid: Arc<OID>) -> Result<()> {
self.inner
.tx
.try_send(PushPayload::State {
oid,
event: RawStateEventOwned::new0(1),
})
.map_err(Into::into)
}
/// Pushes a state error event to the EVA ICS node core /// Pushes a state error event to the EVA ICS node core
pub fn state_error(&self, oid: Arc<OID>) -> Result<()> { pub fn state_error(&self, oid: Arc<OID>) -> Result<()> {
self.inner self.inner
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论