fixed, message send in bridge und android app send file
This commit is contained in:
@@ -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 ─────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user