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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help