# ai.newnal.illi.device.reportStatus

> Device heartbeat (every 60 s): updates lastSeenAt, the online flag and the OS image version (firmwareVersion).

- Kind: procedure
- Authority: device.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.device.reportStatus)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.device.reportStatus/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.device.reportStatus/analytics)

## Procedure (`ai.newnal.illi.device.reportStatus`)

Type: procedure · POST

### Input (application/json)

- `deviceId` (string, required)
  - Constraints: maxLength: 64
- `firmwareVersion` (string): Version of the ILLI unit's OS image (the firmware build), reported by the device itself; not verified. Trusted software state comes from the key attestation.
  - Constraints: maxLength: 32
- `online` (boolean)

### Output (application/json)

- `ok` (boolean, required)

### Errors

- `DeviceNotFound`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Device heartbeat (every 60 s): updates lastSeenAt, the online flag and the OS image version (firmwareVersion).",
      "errors": [
        {
          "name": "DeviceNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deviceId": {
              "maxLength": 64,
              "type": "string"
            },
            "firmwareVersion": {
              "description": "Version of the ILLI unit's OS image (the firmware build), reported by the device itself; not verified. Trusted software state comes from the key attestation.",
              "maxLength": 32,
              "type": "string"
            },
            "online": {
              "type": "boolean"
            }
          },
          "required": [
            "deviceId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "ok": {
              "type": "boolean"
            }
          },
          "required": [
            "ok"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.device.reportStatus",
  "lexicon": 1
}
```
