Bevy+Ratutui powered Monitoring of Pico-Strike devices
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add more request/response payloads

+18 -2
+18 -2
striker-proto/src/lib.rs
··· 1 1 #![no_std] 2 2 3 - use alloc::vec::Vec; 3 + use alloc::{string::String, vec::Vec}; 4 4 5 5 extern crate alloc; 6 6 ··· 12 12 #[derive(Debug, serde::Serialize, serde::Deserialize)] 13 13 pub enum Request { 14 14 Ping, 15 + DetectorInfo, 16 + SetDetectorConfig { 17 + blip_threshold: Option<usize>, 18 + blip_size: Option<usize>, 19 + duty: Option<u16>, 20 + }, 15 21 } 16 22 17 23 #[derive(Debug, serde::Serialize, serde::Deserialize)] 18 24 pub enum StrikerResponse { 19 - Response { response: Response }, 25 + Response(Response), 20 26 Update(Update), 21 27 } 22 28 23 29 #[derive(Debug, serde::Serialize, serde::Deserialize)] 24 30 pub enum Response { 25 31 Pong, 32 + DetectorInfo { 33 + blip_threshold: usize, 34 + blip_size: usize, 35 + max_duty: u16, 36 + duty: u16, 37 + }, 38 + SetDetectorConfig { 39 + success: bool, 40 + message: Option<String>, 41 + }, 26 42 } 27 43 28 44 #[derive(Debug, serde::Serialize, serde::Deserialize)]