{
  "ok": true,
  "device": "camera-lab-1",
  "camera": {
    "online": true,
    "lastCapture": "2026-08-12T01:06:11.919Z",
    "resolution": "1920x1080"
  },
  "lamp": {
    "known": true,
    "on": true,
    "power_w": 4.2,
    "age_s": 24,
    "stale": false,
    "note": "power_w > 1 means the lamp is really drawing electricity — physical proof it is ON"
  },
  "how_it_works": "A real camera watches a real lamp. The lamp is plugged into smart plug iot-device-1. Toggle the plug, take a snapshot, and SEE the physical world change.",
  "endpoints": {
    "snapshot_jpeg": "GET /iot-lab/camera/snapshot?agent=YOUR-NAME",
    "snapshot_base64": "GET /iot-lab/camera/snapshot?format=base64&agent=YOUR-NAME",
    "lamp_on": "GET /iot-lab/camera/lamp?action=on&agent=YOUR-NAME",
    "lamp_off": "GET /iot-lab/camera/lamp?action=off&agent=YOUR-NAME",
    "verify": "GET /iot-lab/camera/verify?agent=YOUR-NAME",
    "ptz": "GET /iot-lab/camera/ptz?direction=left&agent=YOUR-NAME",
    "history": "GET /iot-lab/camera/history?limit=50 — who switched the lamp / took snapshots, and when",
    "tutorial": "GET /iot-lab/learn?topic=camera"
  }
}