diff --git a/.gitignore b/.gitignore index 906b619..7dd2672 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,25 @@ -# Kotlin/Java -*.class -*.jar -*.iml -/out/ +# Gradle/Java/Kotlin +.gradle/ build/ +out/ +*.iml -# ESP32 / PlatformIO / Arduino -*.bin -*.elf -*.pio -*.pioenvs/ -*.idf/ - -# Android -/.gradle/ -/build/ -/local.properties +# IDEA .idea/ +*.iws +*.ipr + +# Logs +*.log # OS .DS_Store -Thumbs.db \ No newline at end of file +Thumbs.db + +# Node/npm (если есть frontend/mobile) +node_modules/ +dist/ + +# Python (если будет) +__pycache__/ +*.pyc \ No newline at end of file diff --git a/backend/.gradle/9.3.0/checksums/checksums.lock b/backend/.gradle/9.3.0/checksums/checksums.lock deleted file mode 100644 index 29c0f90..0000000 Binary files a/backend/.gradle/9.3.0/checksums/checksums.lock and /dev/null differ diff --git a/backend/.gradle/9.3.0/executionHistory/executionHistory.lock b/backend/.gradle/9.3.0/executionHistory/executionHistory.lock deleted file mode 100644 index a7e714d..0000000 Binary files a/backend/.gradle/9.3.0/executionHistory/executionHistory.lock and /dev/null differ diff --git a/backend/.gradle/9.3.0/fileHashes/fileHashes.lock b/backend/.gradle/9.3.0/fileHashes/fileHashes.lock deleted file mode 100644 index 9a1338e..0000000 Binary files a/backend/.gradle/9.3.0/fileHashes/fileHashes.lock and /dev/null differ diff --git a/backend/.gradle/9.3.0/gc.properties b/backend/.gradle/9.3.0/gc.properties deleted file mode 100644 index e69de29..0000000 diff --git a/backend/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/backend/.gradle/buildOutputCleanup/buildOutputCleanup.lock deleted file mode 100644 index ebdd3e2..0000000 Binary files a/backend/.gradle/buildOutputCleanup/buildOutputCleanup.lock and /dev/null differ diff --git a/backend/.gradle/buildOutputCleanup/cache.properties b/backend/.gradle/buildOutputCleanup/cache.properties deleted file mode 100644 index 072f68f..0000000 --- a/backend/.gradle/buildOutputCleanup/cache.properties +++ /dev/null @@ -1,2 +0,0 @@ -#Mon Mar 30 18:39:06 EEST 2026 -gradle.version=9.3.0 diff --git a/backend/.gradle/file-system.probe b/backend/.gradle/file-system.probe deleted file mode 100644 index 6fcb255..0000000 Binary files a/backend/.gradle/file-system.probe and /dev/null differ diff --git a/backend/.gradle/vcs-1/gc.properties b/backend/.gradle/vcs-1/gc.properties deleted file mode 100644 index e69de29..0000000 diff --git a/backend/gradle/wrapper/gradle-wrapper.jar b/backend/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..61285a6 Binary files /dev/null and b/backend/gradle/wrapper/gradle-wrapper.jar differ diff --git a/protocol/.keep b/protocol/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/protocol/examples/command.json b/protocol/examples/command.json new file mode 100644 index 0000000..8d8ad0f --- /dev/null +++ b/protocol/examples/command.json @@ -0,0 +1,13 @@ +{ + "v": 1, + "id": "cmd-123", + "type": "command", + "ts": 1710000000, + "deviceId": "esp32-001", + "payload": { + "command": "setRelay", + "params": { + "state": true + } + } +} \ No newline at end of file diff --git a/protocol/examples/event.json b/protocol/examples/event.json new file mode 100644 index 0000000..94d4836 --- /dev/null +++ b/protocol/examples/event.json @@ -0,0 +1,12 @@ +{ + "v": 1, + "id": "evt-123", + "type": "event", + "ts": 1710000003, + "deviceId": "esp32-001", + "payload": { + "event": "overheat", + "level": "warning", + "message": "Temperature too high" + } +} \ No newline at end of file diff --git a/protocol/examples/response.json b/protocol/examples/response.json new file mode 100644 index 0000000..9734d65 --- /dev/null +++ b/protocol/examples/response.json @@ -0,0 +1,12 @@ +{ + "v": 1, + "id": "resp-123", + "type": "response", + "ts": 1710000001, + "deviceId": "esp32-001", + "payload": { + "requestId": "cmd-123", + "status": "ok", + "data": {} + } +} \ No newline at end of file diff --git a/protocol/examples/telemetry.json b/protocol/examples/telemetry.json new file mode 100644 index 0000000..6dc45ae --- /dev/null +++ b/protocol/examples/telemetry.json @@ -0,0 +1,12 @@ +{ + "v": 1, + "id": "tel-123", + "type": "telemetry", + "ts": 1710000002, + "deviceId": "esp32-001", + "payload": { + "voltage": 220.5, + "current": 1.2, + "temperature": 36.6 + } +} \ No newline at end of file diff --git a/protocol/schema.json b/protocol/schema.json new file mode 100644 index 0000000..2446895 --- /dev/null +++ b/protocol/schema.json @@ -0,0 +1,12 @@ +{ + "type": "object", + "required": ["v", "id", "type", "ts", "deviceId", "payload"], + "properties": { + "v": { "type": "integer" }, + "id": { "type": "string" }, + "type": { "type": "string" }, + "ts": { "type": "integer" }, + "deviceId": { "type": "string" }, + "payload": { "type": "object" } + } +} \ No newline at end of file