From 9564c20942bf776c079429679c8ecd7a21e2efea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Axelsson?= Date: Mon, 18 Dec 2017 12:59:28 -0800 Subject: [PATCH] Sucks example updated --- examples/sucks.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/sucks.py b/examples/sucks.py index 9ab933f..812c074 100644 --- a/examples/sucks.py +++ b/examples/sucks.py @@ -14,9 +14,13 @@ class BumperVacBot(VacBot): self.xmpp.wait_until_ready() logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s') - -# Change server address to the machine running Bumper server_address = ('xxx.xxx.xxx.xxx', 5223) -bumper_client = BumperVacBot(server_address) -bumper_client.connect_and_wait_until_ready() +# Initialize +vacbot = BumperVacBot(server_address) + +# Connect +vacbot.connect_and_wait_until_ready() + +# Send a command +vacbot.run(Clean())