Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runs/remoteSupport/remoteSupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import logging
import re
import json
from datetime import datetime
from subprocess import Popen
from pathlib import Path
from time import sleep
from typing import Optional
import paho.mqtt.client as mqtt
import platform

from helpermodules.timecheck import create_timestamp

API_VERSION = "1"
BASE_PATH = Path(__file__).resolve().parents[2]
Expand Down Expand Up @@ -210,7 +210,7 @@ def is_tunnel_closed(tunnel: Popen) -> bool:


lt_executable = get_lt_executable()
client = mqtt.Client(f"openWB-remote-{get_serial()}-{create_timestamp()}")
client = mqtt.Client(f"openWB-remote-{get_serial()}-{datetime.today().timestamp()}")
client.on_connect = on_connect
client.on_message = on_message
client.will_set(STATE_TOPIC, json.dumps("offline"), qos=2, retain=True)
Expand Down