On Feb 27, 2007, at 9:33 PM, Gary Pan wrote:

Hi all,

I am studying on LoggerWirte/LoggerRead interface right now. The tutorial talks a little bit about it. But I wonder that if anyone can explain more detail how to utilize other commands other than <code>append</code>. Can anyone just use an sample example to explain how to use other commands such as:
   command result_t setPointer(uint16_t line);
   command result_t resetPointer();
   command result_t read(uint16_t line, uint8_t *buffer);
   command result_t setPointer(uint16_t line);
Another question is that the value type of append(uint8_t *data) is uint8_t. The sample from ADC is uint16_t. It's that ok?


The source code has some comments. It looks like none of the demo apps use the interface, so it's not in the documentation up on tinyos.net (something to fix for 2.0.1...). So take a look at tos/ interfaces/LogRead.nc and tos/interface/LogWrite.nc.

Phil


_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to