Hi all,

I am a new TinyOS Student. I need to modify DemoSensorC file in order to have a 
random value  as result of read operation, instead of the constant value 0xbeef.
The idea is to simulate random values to read from  a sensor. 
May you help me please?

Thank you in advance.


james


//.../tos/lib/tossim/DemoSensorC.nc

generic configuration DemoSensorC(){
  provides interface Read<uint16_t>;
}
implementation {
  components new ConstantSensorC(uint16_t, 0xbeef);
  Read = ConstantSensorC;
}

_________________________________________________________________
Scarica GRATIS le tue emoticon preferite!
http://intrattenimento.it.msn.com/emoticon/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to