Write compact JSON data and read it back.
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):
{
  "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