def on_new_device(dev):
print 'Got new device: ', dev.udn
+ print "Type 'list' to see the whole list"
if not dev:
return
"""
c = create_control_point()
c.start()
- #run_async_function(_handle_cmds, (c, ))
+ run_async_function(_handle_cmds, (c, ))
reactor.add_after_stop_func(c.stop)
reactor.main()
def _handle_cmds(c):
while True:
try:
- input= raw_input('(type help)command: ')
+ input= raw_input('(in doubt use help)command: ')
except KeyboardInterrupt, EOFError:
c.stop()
break