[Tinyos-help] SurgeTelos problem - combine function

somoy1 at gmail.com
Sat Jul 7 04:56:33 PDT 2007


Hi
I was trying to use SurgeTelos in tmote platform. My objective was to
call timer.start() if a packet has been received with
type=SURGE_TYPE_ROOTBEACON. But i am facing the following warning:

nesc1: warning: calls to ReceiveMsg.receive in SPM fan out, but there
is no combine function specified for the return type

My added part in SurgeTelos:-
event TOS_MsgPtr Bcast.receive(TOS_MsgPtr pMsg, void* payload,
uint16_t payloadLen) {
    SurgeCmdMsg *pCmdMsg = (SurgeCmdMsg *)payload;

    dbg(DBG_USR2, "SurgeM: Bcast  type 0x%02x\n", pCmdMsg->type);

    if (pCmdMsg->type == SURGE_TYPE_ROOTBEACON) {       // RootBeacon!!
       call Timer.start(TIMER_REPEAT, 30000);
       call CC2420Control.SetRFPower(RESOURCE_NONE,1);
       call Leds.greenToggle();
    }
  return pMsg;
  }
Any help will be highly appreciated.

-Somoy


More information about the Tinyos-help mailing list