Proper report

This commit is contained in:
atse 2023-08-08 16:24:57 +08:00
parent 3e20658107
commit ae9c34f411
2 changed files with 5 additions and 1 deletions

View File

@ -160,6 +160,10 @@ class Client:
"""
return await self._get_conf("postfilter")
async def report(self):
"""Obtain one-time report on measurement values"""
return await self._command("report")
async def report_mode(self):
"""Start reporting measurement values

View File

@ -103,7 +103,7 @@ class ClientWatcher(QObject):
self.fan_update.emit(await self.client.fan())
self.pwm_update.emit(await self.client.get_pwm())
if self.poll_for_report:
self.report_update.emit(await self.client._command("report"))
self.report_update.emit(await self.client.report())
self.pid_update.emit(await self.client.get_pid())
self.thermistor_update.emit(await self.client.get_steinhart_hart())
self.postfilter_update.emit(await self.client.get_postfilter())