From 0732025288afd1834821c177dfdc5089c26f8587 Mon Sep 17 00:00:00 2001 From: gcohen Date: Mon, 29 Dec 2014 19:24:59 -0800 Subject: wip --- python/examples/futureHouse/futureHouse.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py index 9ff8a99..896bbe2 100644 --- a/python/examples/futureHouse/futureHouse.py +++ b/python/examples/futureHouse/futureHouse.py @@ -39,7 +39,8 @@ def reconnect(message): def disconnect(message): print("DISCONNECTED") - +pubnub.subscribe(channel, callback=callback, error=callback, + connect=connect, reconnect=reconnect, disconnect=disconnect) # http://www.raspberrypi.org/forums/viewtopic.php?f=37&t=32826 @@ -68,5 +69,4 @@ while (True): pwm.setPWM(x, 0, ledMax) time.sleep(random.uniform(0.005,0.0001)) -pubnub.subscribe(channel, callback=callback, error=callback, - connect=connect, reconnect=reconnect, disconnect=disconnect) + -- cgit v1.2.3