Hi Zhengsu,
do you get parse errors when trying to query from flash? I remember getting
errors when I tried it. Also, it took a while to find the correct syntax
for getting a query to be stored there. I'm afraid you can't trust the
document on these issues.
After digging up my notes from the time I was experimenting with TinyDB, I
found the working syntax to write to flash (the order of those words is
critical IIRC):
CREATE BUFFER xxx (nodeid uint16, light uint16)
SELECT nodeid, light INTO xxx FROM sensors SAMPLE PERIOD 4096
You can install the Remote component to the mote after this query, and use
the Dir command to see that something really got written (the files remain
in the flash even if you reprogram the mote).
I know, this isn't what you were asking for, but knowing that you shouldn't
try to follow the document could help. Please write a reply if you get it
working.
Regards,
Harri
At 10:37 PM 2/27/2006 -0500, Zhengsu Gao wrote:
Hi, all,
Does anybody has experence of query flash in tinydb. I try to
following tinydb's document, but I never get data from created table.
Help is greatly appreciated.
Zhengsu
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help