[Tinyos-help] FW: Help on LoggerWrite and LoggerRead
#NG YEONG SHENG,JOHNSON#
NG0003ON at ntu.edu.sg
Wed May 3 19:20:11 PDT 2006
________________________________
From: #NG YEONG SHENG,JOHNSON#
Sent: Thu 5/4/2006 10:14 AM
To: tinyos-help-request at Millennium.Berkeley.EDU
Subject: Help on LoggerWrite and LoggerRead
Hi
I need help on LoggerRead and LoggerWrite functions. Lets take an example, I have an array.
int array[5]={1,2,3,4,5};
char* ptr;
ptr=(char*)array[0];
call LoggerWrite.apprend(ptr); <---this will only write the first element into the eeprom.
Is that a way to write everything into the eeprom? Likewise for LoggerRead, is there any way to read the array of data out?
Any advice will be appreciated.
Thanks
Johnson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060504/53a415f3/attachment.htm
More information about the Tinyos-help
mailing list