[Tinyos-help] (LogWrite in tos2) Resume log after reboot
David Gay
dgay42 at gmail.com
Wed Oct 24 07:11:58 PDT 2007
On 10/23/07, Ariel Mauricio Nunez Gomez <ingenieroariel at gmail.com> wrote:
> Hi,
>
> Is it possible to resume a log after a reboot using LogWrite (Instead of
> always calling LogWrite.erase).
> I don't mind if I have to use LogRead until I find the current offset, but I
> can't find anything similar to LogWrite.setOffset().
LogWrite always appends to the end of the log (hence the lack of
setOffset). So to do what you want: just use LogWrite.append... (the
LogStorageC implementation will find the current end of the log by
itself)
David
More information about the Tinyos-help
mailing list