Changeset 15335 for trunk


Ignore:
Timestamp:
04/14/13 17:25:07 (12 years ago)
Author:
tbretz
Message:
Set default interval to 60s; output received data to the console.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/temperature.cc

    r15325 r15335  
    105105
    106106        Update(temp);
     107
     108        ostringstream msg;
     109        msg << "T="    << temp[0] << "°C"
     110            << " Tmin=" << temp[1] << "°C"
     111            << " Tmax=" << temp[2] << "°C";
     112        Message(msg);
    107113
    108114        fStatus = Temperature::State::kValid;
     
    427433        ("url,u",      var<string>("/statusjsn.js?components=18179&_=1365876572736"),  "File name and path to load")
    428434        ("quiet,q",    po_bool(true),  "Disable printing contents of all received messages (except dynamic data) in clear text.")
    429         ("interval,i", var<uint16_t>(15), "Interval between two updates on the server in seconds")
     435        ("interval,i", var<uint16_t>(60), "Interval between two updates on the server in seconds")
    430436        ("debug-tx",   po_bool(), "Enable debugging of ethernet transmission.")
    431437        ("debug-rx",   po_bool(), "Enable debugging for received data.")
     
    447453{
    448454    cout <<
    449         "The temperature is an interface to readout the temperate from the power switch.\n"
     455        "The temperature is an interface to readout the temperature from the power switch.\n"
    450456        "\n"
    451457        "The default is that the program is started without user intercation. "
Note: See TracChangeset for help on using the changeset viewer.