DEVICE INGESTION

POST Publish telemetry

Validate declared numeric measurements and retain their server receipt time.

Endpoint

/api/device-ingest/{device_code}/telemetry authenticates with X-Device-Secret. Undeclared keys, wrong types and out-of-range values return 422 without mutating state.

{"telemetry":{"temperature":28.4,"humidity":56.2}}

Read history

Owners use GET /api/devices/{device_id}/telemetry/history?limit=100. Units and ranges come from canonical capability metadata.