]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/cc2420/LplUnicastPeriodicDelivery/TestPeriodicC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / apps / tests / cc2420 / LplUnicastPeriodicDelivery / TestPeriodicC.nc
index 3635981e927adce6eff491702027da24dcdc2b36..4ecce8365974713351894805c17d41cdaee3e90e 100644 (file)
@@ -29,6 +29,8 @@
  * OF THE POSSIBILITY OF SUCH DAMAGE
  */
 
+#include "TestPeriodic.h"
+
 /**
  * This app sends a message from Transmitter node to the recevier node
  * and waits 1000 ms between each delivery so the Rx mote's radio
@@ -39,8 +41,6 @@
  * @author David Moss
  */
 
-#include "TestPeriodic.h"
-
 module TestPeriodicC {
   uses {
     interface Boot;
@@ -69,7 +69,7 @@ implementation {
     transmitter = (call AMPacket.address() != 0);
     count = 0;
     
-    call LowPowerListening.setLocalSleepInterval(1000);
+    call LowPowerListening.setLocalWakeupInterval(1000);
     call SplitControl.start();
   }
   
@@ -110,7 +110,7 @@ implementation {
   task void send() {
     TestPeriodicMsg *periodicMsg = (TestPeriodicMsg *) call Packet.getPayload(&fullMsg, sizeof(TestPeriodicMsg));
     periodicMsg->count = count;
-    call LowPowerListening.setRxSleepInterval(&fullMsg, 1000);
+    call LowPowerListening.setRemoteWakeupInterval(&fullMsg, 1000);
     if(call AMSend.send(0, &fullMsg, sizeof(TestPeriodicMsg)) != SUCCESS) {
       post send();
     } else {