mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-30 04:06:39 -05:00
Cleanup
This commit is contained in:
parent
120d29db75
commit
c873b9fa33
14 changed files with 9 additions and 6595 deletions
|
|
@ -3228,9 +3228,10 @@ class SidebandCore():
|
|||
if self.config["telemetry_enabled"] == True:
|
||||
self.update_telemeter_config()
|
||||
if self.telemeter != None:
|
||||
def mqtt_job():
|
||||
self.mqtt_handle_telemetry(self.lxmf_destination.hash, self.telemeter.packed())
|
||||
threading.Thread(target=mqtt_job, daemon=True).start()
|
||||
if self.config["telemetry_to_mqtt"]:
|
||||
def mqtt_job():
|
||||
self.mqtt_handle_telemetry(self.lxmf_destination.hash, self.telemeter.packed())
|
||||
threading.Thread(target=mqtt_job, daemon=True).start()
|
||||
return self.telemeter.read_all()
|
||||
else:
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue