Changes between Version 5 and Version 6 of Old/CollectMeasurements


Ignore:
Timestamp:
Jan 30, 2006, 10:32:49 PM (19 years ago)
Author:
max
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/CollectMeasurements

    v5 v6  
    66{{{
    77<measurement-points>
    8 <measurement-point id="group-1">
    9 <metric id="rssi" type="float"/>
    10 <metric id="noise" type="float"/>
    11 </measurement-point>
    12 <measurement-point id="group-2">
    13 <metric id="throughput" type="int"/>
    14 </measurement-point>
     8  <measurement-point id="group-1">
     9    <metric id="rssi" type="float"/>
     10    <metric id="noise" type="float"/>
     11  </measurement-point>
     12  <measurement-point id="group-2">
     13    <metric id="throughput" type="int"/>
     14  </measurement-point>
    1515</measurement-points>
    1616}}}
     
    2323Makefile:
    2424$(INC_DIR)/oml_%.h : $(ETC_DIR)/%.xml
    25 mkdir -p $(INC_DIR)
    26 wget -q http://www.orbit-lab.org/oml/client_wrapper\
    27 --post-file $< -O - \
    28 | tar -C $(BUILD_DIR) -xzf
     25        mkdir -p $(INC_DIR)
     26        wget -q http://www.orbit-lab.org/oml/client_wrapper\
     27                --post-file $< -O - \
     28                | tar -C $(BUILD_DIR) -xzf
     29
    2930oml_foo.h:
    30 int oml_group1(float rssi, float noise);
    31 int oml_group2(int throughput);
     31        int oml_group1(float rssi, float noise);
     32        int oml_group2(int throughput);
    3233}}}
    3334
     
    3536'''Application Code Sample'''
    3637{{{
     38// needs to be called only once
    3739oml_init(&argc, &argv, NULL);
    3840
    3941if (r_data->send_option == 1) {
    40 buffer->rssi = recv_packet_params.rssi ;
    41 buffer->noise = recv_packet_params.noise;
    42 oml_group1(buffer->rssi, buffer->noise);
     42  buffer->rssi = recv_packet_params.rssi ;
     43  buffer->noise = recv_packet_params.noise;
     44  oml_group1(buffer->rssi, buffer->noise);
    4345} else {
    44 log(LOG_ERR, "Unknown receive option! \n");
     46  log(LOG_ERR, "Unknown receive option! \n");
    4547}
    4648lost_packets = pck_id.seqnum - old - 1;