From bee72936d081f83b8a0d7f2feb93be9ae435c3ff Mon Sep 17 00:00:00 2001 From: NilsGrunwald Date: Mon, 7 Jun 2021 18:37:35 +0200 Subject: [PATCH] Testing first version complete --- BSHGateWay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BSHGateWay.py b/BSHGateWay.py index 3ac5ea0..745c8a6 100644 --- a/BSHGateWay.py +++ b/BSHGateWay.py @@ -214,7 +214,7 @@ class BSH: pollId = self.subscribe() self.publishDebugMsg(pollId) self.publishDebugMsg("Starting Polling...") - #Restart Long Polling every 5 seconds + #Restart Long Polling every second while True: result = self.poll(pollId) if result != []: @@ -228,7 +228,7 @@ class BSH: self.publishDebugMsg('\n------------------------------------------------------ %d -\n' % len(result)) self.publishDebugMsg(json.dumps(e, indent=4, sort_keys=False)) self.client.loop_start() - time.sleep(5) + time.sleep(1) self.client.loop_stop()