fixed, message send in bridge und android app send file

This commit is contained in:
2026-03-29 13:36:35 +02:00
parent 457b469c96
commit 867b03aa1e
13 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -896,7 +896,7 @@ class ARIABridge:
"""Sendet Heartbeats an den RVS damit die Verbindung offen bleibt."""
while True:
await asyncio.sleep(25)
if self.ws_rvs and self.ws_rvs.open:
if self.ws_rvs:
try:
await self.ws_rvs.send(json.dumps({
"type": "heartbeat",
@@ -1146,13 +1146,13 @@ class ARIABridge:
async def _send_to_rvs(self, message: dict) -> None:
"""Sendet eine Nachricht an die App (via RVS)."""
if self.ws_rvs is None or not self.ws_rvs.open:
if self.ws_rvs is None:
return
try:
await self.ws_rvs.send(json.dumps(message))
except Exception:
logger.exception("[rvs] Sendefehler")
logger.warning("[rvs] Sendefehler — RVS nicht erreichbar")
# ── Log-Streaming an die App ─────────────────────────────