Skip to content

Latest commit

 

History

History
49 lines (47 loc) · 513 Bytes

README.md

File metadata and controls

49 lines (47 loc) · 513 Bytes

IoT server

HTTP REST API Specification

POST /api/auth/login
{
    "email": "",
    "password": ""
}
POST /api/auth/register
{
    "email": "",
    "password": ""
}
GET /api/devices
POST /api/devices
{
    "name": ""
}
PUT /api/devices/:id
{
    "name": ""
}
DELETE /api/devices/:id
GET /api/devices/:id/readings

MQTT message:

{
    "device_id": 1,
    "type": "TEMPERATURE",
    "value": 0,
    "time": 1696699342
}

MQTT topic: sensors