aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples
diff options
context:
space:
mode:
authorgcohen2014-12-29 19:24:59 -0800
committergcohen2014-12-29 19:24:59 -0800
commit0732025288afd1834821c177dfdc5089c26f8587 (patch)
treeb98e5bbf02405e7c219de9419f4b335197fcdb6b /python/examples
parent3e416627bf275e7948a1ff0e60ca74fc5221aa88 (diff)
downloadpubnub-python-0732025288afd1834821c177dfdc5089c26f8587.tar.bz2
wip
Diffstat (limited to 'python/examples')
-rw-r--r--python/examples/futureHouse/futureHouse.py6
1 files changed, 3 insertions, 3 deletions
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)
+