Crates.io | hikvision-rs |
lib.rs | hikvision-rs |
version | 0.0.8 |
source | src |
created_at | 2024-03-21 22:45:28.58516 |
updated_at | 2024-06-06 19:38:56.752952 |
description | High-level asynchronous library for controlling cameras from Hikvision using the PTZ API |
homepage | |
repository | |
max_upload_size | |
id | 1182117 |
size | 11,182 |
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(())
}