Hello Maryam,

Use the following in your configuration file:

components CC2420ActiveMessageC;
components CC2420ControlC;



App.AMControl -> CC2420ActiveMessageC;
App.CC2420Config -> CC2420ControlC;



Then in your implementation file:

interface SplitControl as AMControl;
interface CC2420Config;


and whenever you want to change the frequency:

call CC2420Config.setChannel(f);
call CC2420Config.sync();


Hope that helps.

Ali

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to