Make mqtt messgae handler cleaner

This commit is contained in:
QuantumEntangledAndy committed 2023-05-14 08:46:22 +07:00
1 parent a819248556
commit 72cf358b0c
3 files changed
+222 -197

No files matched your search

+4 -4
View File
@@ -16,7 +16,7 @@ pub enum Direction {
/// To zoom the camera Out (may be done with cropping depending on camera model)
Out,
/// To stop currently active PTZ command
Stop
Stop,
}
impl BcCamera {
@@ -34,11 +34,11 @@ impl BcCamera {
Direction::Right => "right",
Direction::In => {
todo!()
},
}
Direction::Out => {
todo!()
},
Direction::Stop => "stop"
}
Direction::Stop => "stop",
}
.to_string();
let send = Bc {