> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peaq.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Add and Read Data

Write compact JSON data and read it back.

```python theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
from peaq_robot import PeaqRobot

sdk = PeaqRobot()

# Write
tx = sdk.store.add_data("TELEMETRY_001", {"battery": 87.3})
print(tx)

# Read
res = sdk.store.read_data("TELEMETRY_001")
print(res["data"])   # decoded JSON if possible
```

Response example (read):

```json theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
{
  "exists": true,
  "read_status": "success",
  "address": "5F...abc",
  "data_type": "TELEMETRY_001",
  "raw": "0x7b2262617474657279223a38372e337d",
  "data": {
    "battery": 87.3
  }
}
```

Limits:

* `data_type` ≤ 64 chars
* serialized `data` ≤ 256 chars
