jbr_monitor_bssids.py: this timing works better for retrieving events

maybe on APU2 hardware this just takes significantly longer

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
Jed Reynolds
2021-11-04 00:22:49 -07:00
parent 189da24e6f
commit 5e7e7e744f

View File

@@ -201,14 +201,19 @@ class BssidMonitor(Realm):
card='all',
port='all',
endp='all')
time.sleep(0.1)
time.sleep(0.2)
event_response = self.lf_query.events_last_events(event_count=1,
debug=self.debug,
wait_sec=1,
max_timeout_sec=120,
errors_warnings=err_warn_list)
if not event_response:
Logg.logg(level=logging.ERROR, msg="No event_response")
Logg.logg(level=logging.ERROR, msg="No event_response, we should have retried that")
return
# pprint(("event_response:", event_response))
if "id" not in event_response:
pprint(("event_response:", event_response))
return
return event_response["id"]
def wait_for_load_to_finish(self, since_id: int = None):