def caseRecord():
    print "++caseRecord++"
    reporter = Datastore(cik,
                         interval,
                         dataport_config,
                         datastore_config,
                         transport_config)
    reporter.start()
    val = random.randint(1, 100)
    print "Writing %i historically as raw data to One Platform (value may be \
pre-processed before storing).\r\n" % val
    try:
        # put data to the record buffer
        reporter.record('X2', [[int(time.time()), val]])
    except (__HOLE__, SystemExit):
        reporter.stop(True)
        sys.exit(0)
    reporter.stop(True)
dataset/ETHPy150Open exosite-labs/pyonep/examples/read_write_buffered.py/caseRecord