transmitter = (call AMPacket.address() != 0);
count = 0;
- call LowPowerListening.setLocalSleepInterval(1000);
+ call LowPowerListening.setLocalWakeupInterval(1000);
call SplitControl.start();
}
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 {