remove deprecated protocol directory; replaced by contract

This commit is contained in:
2026-04-05 20:05:43 +03:00
parent fddc086b4e
commit 98cc0db107
7 changed files with 0 additions and 104 deletions

View File

@@ -1,12 +0,0 @@
ktor:
host: 0.0.0.0
port: 8080
app:
name: iot-backend
api:
prefix: /api/v1
ws:
path: /ws

View File

@@ -1,12 +0,0 @@
ktor:
host: 0.0.0.0
port: 8080
app:
name: iot-backend
api:
prefix: /api/v1
ws:
path: /ws

View File

@@ -1,13 +0,0 @@
{
"v": 1,
"id": "cmd-123",
"type": "command",
"ts": 1710000000,
"deviceId": "esp32-001",
"payload": {
"command": "setRelay",
"params": {
"state": true
}
}
}

View File

@@ -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"
}
}

View File

@@ -1,12 +0,0 @@
{
"v": 1,
"id": "resp-123",
"type": "response",
"ts": 1710000001,
"deviceId": "esp32-001",
"payload": {
"requestId": "cmd-123",
"status": "ok",
"data": {}
}
}

View File

@@ -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
}
}

View File

@@ -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"
}
}
}