mirror of
https://gitlab.com/fabinfra/fabaccess/fabfire_adapter.git
synced 2025-03-12 23:01:44 +01:00
Fixed: Slow Screen Update
This commit is contained in:
parent
ec8ff9c30c
commit
828f086ecf
@ -29,8 +29,7 @@ class Reader:
|
||||
response_for_reader, self.session = await fabapi.connect_with_fabfire_step(self.auth_cap, message.payload)
|
||||
if self.session:
|
||||
self.timeout_timer.cancel()
|
||||
await client.publish(f"fabreader/{self.reader_id}/stopOTA", payload="", qos=2, retain=False)
|
||||
|
||||
|
||||
info = self.session.machineSystem.info
|
||||
ma = await info.getMachineURN(f"{self.machine_urn}").a_wait()
|
||||
|
||||
@ -46,6 +45,9 @@ class Reader:
|
||||
else:
|
||||
await ma.use.use().a_wait()
|
||||
await client.publish(f"fabreader/{self.reader_id}/display/title", payload="In Use", qos=2, retain=False)
|
||||
|
||||
await client.publish(f"fabreader/{self.reader_id}/stopOTA", payload="", qos=2, retain=False)
|
||||
|
||||
self.session = None
|
||||
self.auth_cap = None
|
||||
response_for_reader = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user