I'm trying to use the events under tinyDB but I've got some problems.
1 - If I write the following query, as in the TinyDB reference,
On evtTest:
SELECT nodeid,light
SAMPLE PERIOD 1024
the GUI always tell "errorMsg = Syntax error at on".
What is the problem?
2 - I modified the TinyDBApp in nesC as following, including the code of
/tinyos-1.x/tos/lib/TinyDB/TinyDBEvent.nc:
includes CompileDefines;
configuration TinyDBApp {
provides interface EventUse;
provides interface StdControl;
}
implementation {
components Main, TupleRouter, Event, TinyDBEventM;
Main.StdControl -> TupleRouter;
EventUse = Event.EventUse;
Event.StdControl = StdControl;
TinyDBEventM.StdControl = StdControl;
TinyDBEventM.EventRegister -> Event;
}
Does it is correct?
3 -I spent time to undurstand the way to use the
tinyos-1.x/tos/lib/TinyDB/TinyDBEvent.nc in the TinyDBApp.nc without copy
the code directly inside, but using the nesC syntax. Unfortunately I can't
undestand exactly how I shuold do.
What is the correct way to do?
In general what is the right way to use components which are already made?
Roberto Pietrangeli
---------------------------------------------
EDALab - Networked Embedded Systems
C.S. Dept - University of Verona - IT
---------------------------------------------
email: [EMAIL PROTECTED]
tel. : +39 045 802 70 62
fax : +39 045 802 70 68
web: www.edalab.net
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help