def caseRead():
    print "++caseRead++"
    reporter = Datastore(cik,
                         interval,
                         dataport_config,
                         datastore_config,
                         transport_config)
    reporter.start()
    print "Read is sleeping for %i seconds to allow write buffer \
to flush." % interval
    time.sleep(interval)
    try:
        # this will read back value of whatever was in the 1P before writing,
        # and will store the value in cache
        print "Read: ", reporter.read('X1')
    except (__HOLE__, SystemExit):
        reporter.stop(True)
        sys.exit(0)
    reporter.stop(True)
dataset/ETHPy150Open exosite-labs/pyonep/examples/read_write_buffered.py/caseRead