]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
- updates to go along with new low power listening interface
authorsdhsdh <sdhsdh>
Sat, 19 Sep 2009 21:13:26 +0000 (21:13 +0000)
committersdhsdh <sdhsdh>
Sat, 19 Sep 2009 21:13:26 +0000 (21:13 +0000)
apps/IPBaseStation/BaseStationP.nc
tos/lib/net/blip/IPDispatchP.nc

index fc7df4eeccfd71b684a09e3918347d958f45c76e..71645ca91c5b13added1f2782e98e0eb3cc6ed09 100644 (file)
@@ -358,7 +358,7 @@ implementation
       call PacketLink.setRetries(msg, 0);
     }
 #ifdef LPL_SLEEP_INTERVAL
-    call LowPowerListening.setRxSleepInterval(msg, LPL_SLEEP_INTERVAL);
+    call LowPowerListening.setRemoteWakeupInterval(msg, LPL_SLEEP_INTERVAL);
 #endif
     dbg("base", "radio send to: 0x%x len: %i\n", addr, len);
     if (call RadioSend.send(addr, msg, len) == SUCCESS)
index 419cd68797cb73efedd6d97f2bea9cbde3aa9f4d..76f192335965c5f7ffd17f00fa300fe226f41471 100644 (file)
@@ -237,7 +237,7 @@ module IPDispatchP {
 
   event void RadioControl.startDone(error_t error) {
 #ifdef LPL_SLEEP_INTERVAL
-    call LowPowerListening.setLocalSleepInterval(LPL_SLEEP_INTERVAL);
+    call LowPowerListening.setLocalWakeupInterval(LPL_SLEEP_INTERVAL);
 #endif
     if (error == SUCCESS) {
       call ICMP.sendSolicitations();
@@ -791,10 +791,12 @@ module IPDispatchP {
     call PacketLink.setRetries(s_entry->msg, s_entry->info->policy.retries);
     call PacketLink.setRetryDelay(s_entry->msg, s_entry->info->policy.delay);
 #ifdef LPL_SLEEP_INTERVAL
-    call LowPowerListening.setRxSleepInterval(s_entry->msg, call LowPowerListening.getLocalSleepInterval());
+    call LowPowerListening.setRemoteWakeupInterval(s_entry->msg, 
+            call LowPowerListening.getLocalWakeupInterval());
 #endif
 
-    dbg("IPDispatch", "sendTask dest: 0x%x len: 0x%x \n", call Ieee154Packet.destination(s_entry->msg),
+    dbg("IPDispatch", "sendTask dest: 0x%x len: 0x%x \n", 
+        call Ieee154Packet.destination(s_entry->msg),
         call Packet.payloadLength(s_entry->msg));
     
     if (s_entry->info->failed) {