Method
status_event
(
&self,
_vars: &HashMap<String, String>,
pl: &integration::StatusEvent,
)
Source from the content-addressed store, hash-verified
| 86 | } |
| 87 | |
| 88 | async fn status_event( |
| 89 | &self, |
| 90 | _vars: &HashMap<String, String>, |
| 91 | pl: &integration::StatusEvent, |
| 92 | ) -> Result<()> { |
| 93 | let dev_info = pl |
| 94 | .device_info |
| 95 | .as_ref() |
| 96 | .ok_or_else(|| anyhow!("device_info is None"))?; |
| 97 | let b = pl.encode_to_vec(); |
| 98 | stream::event::log_event_for_device("status", &dev_info.dev_eui, &b).await |
| 99 | } |
| 100 | |
| 101 | async fn location_event( |
| 102 | &self, |