Skip to main content

update_device

Function update_device 

Source
pub async fn update_device(
    __arg0: State<HardwareCtx>,
    __arg1: Path<String>,
    __arg2: Json<DeviceUpdate>,
) -> (StatusCode, Json<Value>)
Expand description

PATCH /api/hardware/devices/:id — update a device’s name / prefs.