Sucks example updated
This commit is contained in:
parent
b74f76fb45
commit
9564c20942
1 changed files with 8 additions and 4 deletions
|
|
@ -14,9 +14,13 @@ class BumperVacBot(VacBot):
|
||||||
self.xmpp.wait_until_ready()
|
self.xmpp.wait_until_ready()
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s')
|
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)
|
server_address = ('xxx.xxx.xxx.xxx', 5223)
|
||||||
|
|
||||||
bumper_client = BumperVacBot(server_address)
|
# Initialize
|
||||||
bumper_client.connect_and_wait_until_ready()
|
vacbot = BumperVacBot(server_address)
|
||||||
|
|
||||||
|
# Connect
|
||||||
|
vacbot.connect_and_wait_until_ready()
|
||||||
|
|
||||||
|
# Send a command
|
||||||
|
vacbot.run(Clean())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue