diff options
author | mathieui <mathieui@mathieui.net> | 2021-01-27 00:09:26 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-01-27 00:09:26 +0100 |
commit | 9390794401f438e93ac39805b77bcca05d5a3e47 (patch) | |
tree | 0ae2c554b246957dc5e5cddc99469cf640fccf7c /examples/IoT_TestDevice.py | |
parent | 70b508101896e8076228059fdd4726c2c39fa831 (diff) | |
download | slixmpp-9390794401f438e93ac39805b77bcca05d5a3e47.tar.gz slixmpp-9390794401f438e93ac39805b77bcca05d5a3e47.tar.bz2 slixmpp-9390794401f438e93ac39805b77bcca05d5a3e47.tar.xz slixmpp-9390794401f438e93ac39805b77bcca05d5a3e47.zip |
examples: updates to reflect asyncio
Diffstat (limited to 'examples/IoT_TestDevice.py')
-rwxr-xr-x | examples/IoT_TestDevice.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/IoT_TestDevice.py b/examples/IoT_TestDevice.py index b9546017..d8e8fd06 100755 --- a/examples/IoT_TestDevice.py +++ b/examples/IoT_TestDevice.py @@ -168,13 +168,13 @@ if __name__ == '__main__': xmpp.beClientOrServer(server=True) while not(xmpp.testForRelease()): xmpp.connect() - xmpp.process(block=True) + xmpp.process(forever=False) logging.debug("lost connection") if args.sensorjid: logging.debug("will try to call another device for data") xmpp.beClientOrServer(server=False,clientJID=args.sensorjid) xmpp.connect() - xmpp.process(block=True) + xmpp.process(forever=False) logging.debug("ready ending") else: |