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 _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help