Method
ack_event
(
&self,
_vars: &HashMap<String, String>,
pl: &integration::AckEvent,
)
Source from the content-addressed store, hash-verified
| 47 | } |
| 48 | |
| 49 | async fn ack_event( |
| 50 | &self, |
| 51 | _vars: &HashMap<String, String>, |
| 52 | pl: &integration::AckEvent, |
| 53 | ) -> Result<()> { |
| 54 | let dev_info = pl |
| 55 | .device_info |
| 56 | .as_ref() |
| 57 | .ok_or_else(|| anyhow!("device_info is None"))?; |
| 58 | let b = pl.encode_to_vec(); |
| 59 | stream::event::log_event_for_device("ack", &dev_info.dev_eui, &b).await |
| 60 | } |
| 61 | |
| 62 | async fn txack_event( |
| 63 | &self, |