def main(argv): z = zcomm() msg_counter = itertools.count() while True: msg = str(msg_counter.next()) z.publish('FROB_DATA', msg); time.sleep(1/float(HZ))
def main(argv): z = zcomm() z.subscribe('', handle_msg) z.run()