Hi..
Is there any way to get data from a file in nesc..like when a sensor network
is simulated in tossim can the data to the nodes be read from a file
?similarly can the data be written into the file?
I tried using the Get interface,but i'm getting some errors regarding
linking..can u plz help..
*this is the application getdataC.nc*
/* a test to get data.
*/
#include "Timer.h"
module getdataC {
uses {
interface Get<uint16_t> as gEt;
interface Timer<TMilli>;
interface Boot;
}
}
implementation {
uint16_t data;
event void Timer.fired()
{
data = (uint16_t) call gEt.get();
dbg("message","message we got : :hu.\n",data);
}
event void Boot.booted(){
call Timer.startPeriodic(250);
dbg("boot","it's booted.\n");
}
}
*and the getdataAppC.nc*
configuration getdataAppC{
}
implementation {
components getdataC, MainC;
components new TimerMilliC();
getdataC.Boot -> MainC.Boot;
getdataC.Timer -> TimerMilliC;
}
*i'm not able to find a provider which provides Get interface..
*
*i got errors telling*
In component `getdataC':
getdataC.nc: In function `Timer.fired':
getdataC.nc:20: gEt.get not connected
make: *** [sim-exe] Error 1
--
swaroopa
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help