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()