| Crates.io | hikvision-rs |
| lib.rs | hikvision-rs |
| version | 0.1.0 |
| created_at | 2024-03-21 22:45:28.58516+00 |
| updated_at | 2025-10-31 15:12:10.546404+00 |
| description | High-level asynchronous library for controlling cameras from Hikvision using the PTZ API |
| homepage | |
| repository | https://github.com/PuffyWithEyes/hikvision-rs |
| max_upload_size | |
| id | 1182117 |
| size | 51,944 |
High-level asynchronous library for controlling cameras from Hikvision using the PTZ API
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut cam = hikvision::Cam::new("127.0.0.1", 1208, Some(("admin", "12345")), 500).await?;
cam.zoom_cam(10).await?;
Ok(())
}
If the camera does not respond to your commands, then try the following:
In the camera settings, set the Configuration -> PTZ -> "Basic Settings" -> "Manual Control Speed" parameter to "Compatible".