diff options
| author | gcohen | 2014-12-29 20:13:59 -0800 | 
|---|---|---|
| committer | gcohen | 2014-12-29 20:13:59 -0800 | 
| commit | 5aa42af1a41c1f05d2ada6e708e452bafdd6693d (patch) | |
| tree | d7378e30fad7511b79633682abb3026f9f5e3ee5 /python/examples/futureHouse/futureHouse.py | |
| parent | de091c55df476345da483bbbfb6dee01164f7a31 (diff) | |
| download | pubnub-python-5aa42af1a41c1f05d2ada6e708e452bafdd6693d.tar.bz2 | |
adding PN control
Diffstat (limited to 'python/examples/futureHouse/futureHouse.py')
| -rw-r--r-- | python/examples/futureHouse/futureHouse.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py index 8eb98c3..410d90b 100644 --- a/python/examples/futureHouse/futureHouse.py +++ b/python/examples/futureHouse/futureHouse.py @@ -26,7 +26,11 @@ leds = [  ]  def callback(message, channel): -    print(message) +    for x in message: +        print (x) +        for y in message[x]: +            print (y, ':', message[x][y]) +      # LED Setters      if 'ledID' in message:          if 'value' in message: | 
