diff options
| author | gcohen | 2014-12-29 19:24:59 -0800 |
|---|---|---|
| committer | gcohen | 2014-12-29 19:24:59 -0800 |
| commit | 0732025288afd1834821c177dfdc5089c26f8587 (patch) | |
| tree | b98e5bbf02405e7c219de9419f4b335197fcdb6b /python/examples/futureHouse/futureHouse.py | |
| parent | 3e416627bf275e7948a1ff0e60ca74fc5221aa88 (diff) | |
| download | pubnub-python-0732025288afd1834821c177dfdc5089c26f8587.tar.bz2 | |
wip
Diffstat (limited to 'python/examples/futureHouse/futureHouse.py')
| -rw-r--r-- | python/examples/futureHouse/futureHouse.py | 6 |
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) + |
