Skip to main content

## device_set_id

# Function device_set_id

Source

    pub async fn device_set_id(
        device_id: String,
        db: State<'_, DatabaseWrapper>,
    ) -> Result<(), String>

Expand description

Set the device ID (primarily for testing or recovery). Overwrites any existing device ID.

## §Arguments

- `device_id` - The device ID to store (should be UUID v4 format)

## §Returns

- `Ok(())` - If device ID was stored successfully
- `Err(String)` - If database operation fails

TRACES: UR-009 | DR-011