Erweiterungen

This commit is contained in:
2025-10-23 12:18:42 +02:00
parent 98974dcc2a
commit e7d18533b5
37 changed files with 5028 additions and 490 deletions

View File

@@ -2,15 +2,28 @@
This document describes how mobile/Flutter apps should communicate with the backend using MQTT. It replaces the previous STOMP/WebSocket communication.
Broker: tcp://192.168.180.26:1883 (MQTT v5)
QoS: 2 (exactly once)
Retain: Enabled for critical topics (see below), otherwise not retained
Payloads: JSON (UTF8)
## ⚠️ WICHTIG: Neue Konfiguration (Stand: 2025-10-22)
Connection
- MQTT clientId: choose a stable, unique per-device id (e.g., app-<uuid>)
- Clean session: false (recommended for guaranteed delivery). The broker will queue QoS>0 messages while the app is offline.
- Authentication: currently none (adjust if needed)
**Broker**: `mqtt-2.assecutor.de:42099` (MQTT v5)
**Port**: `42099` (geändert von 1883!)
**QoS**: 2 (exactly once)
**Retain**: Enabled for critical topics (see below), otherwise not retained
**Payloads**: JSON (UTF8)
### Connection Parameters
- **MQTT clientId**: choose a stable, unique per-device id (e.g., app-<uuid>)
- **Clean session**: false (recommended for guaranteed delivery). The broker will queue QoS>0 messages while the app is offline.
- **Authentication**: **REQUIRED** (neu!)
- Username: `app`
- Password: `apppwd`
- **Keep-Alive**: 60 seconds
- **Connection Timeout**: 60 seconds
### Migration Notice
📖 **Für die Migration auf das neue System siehe:**
- `MQTT_MIGRATION_GUIDE.md` - Detaillierte Migrationsanleitung
- `MQTT_QUICK_REFERENCE.md` - Schnellreferenz mit Code-Beispielen
- `CHANGELOG_MQTT.md` - Vollständige Liste aller Änderungen
Topic Naming (v1/*)
- v1/app/<deviceId>/auth/login (App -> Server)