Initialize NNNet project structure and documentation

This commit is contained in:
dom4k
2026-03-16 19:04:20 +00:00
commit 2ad5e03cb7
3 changed files with 147 additions and 0 deletions

25
docs/ARCHITECTURE.md Normal file
View File

@@ -0,0 +1,25 @@
# Архитектура School Mesh Messenger
## Слои
- BLE Transport: сканирование, реклама, соединения, обмен пакетами.
- Mesh Layer: маршрутизация, TTL, дедупликация, ACK.
- Messaging Layer: чаты, статусы доставки, история.
- Storage Layer: Room для локального хранения.
## Сетевой пакет (черновик)
```json
{
"messageId": "uuid",
"senderId": "device-or-user-id",
"targetId": "user-or-group-id",
"ttl": 6,
"timestamp": 0,
"type": "message|ack|presence",
"payload": "base64-or-json"
}
```
## Ближайшие шаги
1. BLE discovery + advertising прототип.
2. Relay между 2-3 устройствами.
3. ACK/timeout/retry очередь.