Skip to main content

add_device

Function add_device 

Source
pub async fn add_device(
    pool: &SqlitePool,
    device: &DiscoveredDevice,
) -> Result<String>
Expand description

Register a discovered device as a camera with recording DISABLED (operator enables it later). HikVision/Dahua use the vendor template (so the sub-stream is derivable); other vendors store the exact discovered RTSP URL. Returns the new camera id.