remove deprecated protocol directory; replaced by contract
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
ktor:
|
|
||||||
host: 0.0.0.0
|
|
||||||
port: 8080
|
|
||||||
|
|
||||||
app:
|
|
||||||
name: iot-backend
|
|
||||||
|
|
||||||
api:
|
|
||||||
prefix: /api/v1
|
|
||||||
|
|
||||||
ws:
|
|
||||||
path: /ws
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
ktor:
|
|
||||||
host: 0.0.0.0
|
|
||||||
port: 8080
|
|
||||||
|
|
||||||
app:
|
|
||||||
name: iot-backend
|
|
||||||
|
|
||||||
api:
|
|
||||||
prefix: /api/v1
|
|
||||||
|
|
||||||
ws:
|
|
||||||
path: /ws
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"v": 1,
|
|
||||||
"id": "cmd-123",
|
|
||||||
"type": "command",
|
|
||||||
"ts": 1710000000,
|
|
||||||
"deviceId": "esp32-001",
|
|
||||||
"payload": {
|
|
||||||
"command": "setRelay",
|
|
||||||
"params": {
|
|
||||||
"state": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"v": 1,
|
|
||||||
"id": "evt-123",
|
|
||||||
"type": "event",
|
|
||||||
"ts": 1710000003,
|
|
||||||
"deviceId": "esp32-001",
|
|
||||||
"payload": {
|
|
||||||
"event": "overheat",
|
|
||||||
"level": "warning",
|
|
||||||
"message": "Temperature too high"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"v": 1,
|
|
||||||
"id": "resp-123",
|
|
||||||
"type": "response",
|
|
||||||
"ts": 1710000001,
|
|
||||||
"deviceId": "esp32-001",
|
|
||||||
"payload": {
|
|
||||||
"requestId": "cmd-123",
|
|
||||||
"status": "ok",
|
|
||||||
"data": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"v": 1,
|
|
||||||
"id": "tel-123",
|
|
||||||
"type": "telemetry",
|
|
||||||
"ts": 1710000002,
|
|
||||||
"deviceId": "esp32-001",
|
|
||||||
"payload": {
|
|
||||||
"voltage": 220.5,
|
|
||||||
"current": 1.2,
|
|
||||||
"temperature": 36.6
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": ["v", "type", "ts", "deviceId", "payload"],
|
|
||||||
"properties": {
|
|
||||||
"v": {
|
|
||||||
"type": "integer",
|
|
||||||
"description": "Protocol version"
|
|
||||||
},
|
|
||||||
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Message type"
|
|
||||||
},
|
|
||||||
|
|
||||||
"ts": {
|
|
||||||
"type": "integer",
|
|
||||||
"description": "Unix time in milliseconds"
|
|
||||||
},
|
|
||||||
|
|
||||||
"deviceId": {
|
|
||||||
"type": "string",
|
|
||||||
"minLength": 1,
|
|
||||||
"description": "Unique device identifier"
|
|
||||||
},
|
|
||||||
|
|
||||||
"payload": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "Message-specific data"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user