I already tested with the LogRead.seek. I did a LogRead.seek, with 
SEEK_BEGINNING in the first call to LogRead.read. But it didn't work as well.

No dia 25/06/2012, às 21:58, kaustav das <[email protected]> escreveu:

> You have to perform LogRead.seek before each read. You need to specify the 
> position from where you want to read. In your code you are not doing any 
> logseek before read. I think this is the problem. Please rectify me if I am 
> wrong
> 
> On Tue, Jun 26, 2012 at 1:54 AM, João Alves <[email protected]> 
> wrote:
> Hi,
> 
> I am having problems with the LogStorage and its driving me crazy. I am 
> sending this email to you to see if you're available to help me. Bellows 
> follows my question, if you have the desire and time to help me, I would 
> greatly appreciate it. 
> 
> I am working on a pratical simulation of an opportunistic network and I am 
> having problems with the LogStorage as I said above. The objective is to 
> store a lot of records and periodically read and send them to another mote. 
> When I am making the LogRead, I always read the last record inserted. Did you 
> came across this error already?  
> 
> I am using a telosb mote.
> 
> In attachement follows the code.
> 
> Thank you in advance,
> 
> João Alves.
> 
> 
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
> 
> -- 
> Kaustav Das,
> M.Tech Student,
> Department of CSE,
> IIT Bombay
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to