[Tinyos-help] TinyDB Reading and writing from Buffers
Christian Brenninkmeijer
brenninc at cs.man.ac.uk
Fri Jun 9 08:39:19 PDT 2006
Hi Everyone.
What does "SAMPLE PERIOD y" do in the following?
In the TinyDB docs they say they can write to buffers with the following
example.
CREATE BUFFER name SIZE X
(field1 type, field2 type)
SELECT field1, field2 FROM sensors
SAMPLE PERIOD x
INTO name
SELECT field1, feild2
SAMPLE PERIOD y
FROM name
What does the line
"SAMPLE PERIOD y" actually do?
The query that filled the buffer has stopped so I would expect the
retrieving query to just return the whole stored buffer. I do not
understand what the SAMPLE PERIOD Y does.
--
Christian Brenninkmeijer
PhD Student - DIAS-MC project
Department of Computer Science
The University of Manchester
More information about the Tinyos-help
mailing list