server

module
v0.0.0-...-055cc3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: MIT

README

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

Directories

Path Synopsis
internal
dto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL