[Tinyos-help] list of values

wafa jaballah wafa.jaballah at gmail.com
Fri Apr 2 08:59:41 PDT 2010


Hi all,

I want to compute the number of buffered packet every 2 second (for
example). I used a timer like this :


command void Receiver.ProcessData(Data_Packet_t *p, long rcv_time)

{



call Timer1.startPeriodic(d);

// the rest of the code

}

event void Timer1.fired()

{

signal Receiver.computeDataReady();

}



event error_t Receiver.computeDataReady()

{

uint8_t num;

num = call Buffer.dataNum();

dbg("simC","NUMBER OF BUFFERED DATA PACKET IS %d \n", num);

}
Are there better methods to do this considering that I want the values
written in a file. Could I use python to do this?

Thanks for any suggestions.







-- 
Wafa Ben Jaballah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100402/e712a7e5/attachment.htm 


More information about the Tinyos-help mailing list