Skip to main content

display_image

Function display_image 

Source
pub async fn display_image(
    __arg0: State<HardwareCtx>,
    __arg1: Path<String>,
    __arg2: Query<ImageQuery>,
    headers: HeaderMap,
) -> Response
Expand description

GET /api/hardware/display/:device_id/image?rev= — the rendered image bytes (packed 1-bit for e-ink, RGB565, or PNG). Returns 304 when the device’s rev matches the freshly-rendered content hash.