X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftests%2Fcc2420%2FLplUnicastPeriodicDelivery%2FTestPeriodicC.nc;h=4ecce8365974713351894805c17d41cdaee3e90e;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=3635981e927adce6eff491702027da24dcdc2b36;hpb=384019ffdf578934975d1a2cea97a2d5c1f98deb;p=tinyos-2.x.git diff --git a/apps/tests/cc2420/LplUnicastPeriodicDelivery/TestPeriodicC.nc b/apps/tests/cc2420/LplUnicastPeriodicDelivery/TestPeriodicC.nc index 3635981e..4ecce836 100644 --- a/apps/tests/cc2420/LplUnicastPeriodicDelivery/TestPeriodicC.nc +++ b/apps/tests/cc2420/LplUnicastPeriodicDelivery/TestPeriodicC.nc @@ -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 {