Example #1
0
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))
Example #2
0
def main(argv):
    z = zcomm()
    z.subscribe('', handle_msg)
    z.run()