My objective is to read the whole log. I was debugging the LogRead pointer
and the pointer is being incremented correctly, but the data read is
allways the last append.

2012/6/26 AKHILA S RAO <[email protected]>

> SEEK_BEGINNING takes you to the beginning of the log . .The pointers get
> automatically incremented when you are doing LogWrite.append, annd when
> you are doing LogRead.read. So if you just want the last piece of data
> stored then you should move the pointer back by that amount (using .seek
> )and then say Read.
>
>
>
>
> > 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
> >>
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to