def caseWrite():
    print "++caseWrite++"
    reporter = Datastore(cik,
                         interval,
                         dataport_config,
                         datastore_config,
                         transport_config)
    reporter.start()
    val = random.randint(1, 100)
    print "Writing %i real-time as raw data to One Platform \
(value may be pre-processed before storing).\r\n" % val
    try:
        # During 'interval' seconds, only the latest write call will be used
        # for a given alias.
        reporter.write('X1', val)
    except (KeyboardInterrupt, __HOLE__):
        reporter.stop(True)
        sys.exit(0)
    reporter.stop(True)
dataset/ETHPy150Open exosite-labs/pyonep/examples/read_write_buffered.py/caseWrite