Changes between Version 5 and Version 6 of Old/CollectMeasurements
- Timestamp:
- Jan 30, 2006, 10:32:49 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/CollectMeasurements
v5 v6 6 6 {{{ 7 7 <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> 15 15 </measurement-points> 16 16 }}} … … 23 23 Makefile: 24 24 $(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 29 30 oml_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); 32 33 }}} 33 34 … … 35 36 '''Application Code Sample''' 36 37 {{{ 38 // needs to be called only once 37 39 oml_init(&argc, &argv, NULL); 38 40 39 41 if (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); 43 45 } else { 44 log(LOG_ERR, "Unknown receive option! \n");46 log(LOG_ERR, "Unknown receive option! \n"); 45 47 } 46 48 lost_packets = pck_id.seqnum - old - 1;