Hello,
In order to receive the packets quickly, i chose to store msg in local frame
and return a different message_t* for the lower layer to use.
I am not sure of how to get payload outside the event, this might be silly
question. Please guide me.
message_t buf;
message_t* ptr = &buf;
task processTask(){
//how can i get the payload here like these (nx_uint16_t* nval =
(nx_uint16_t*)payload)
// codes to process the task
}
message_t* Receive.receive(message_t* msg, void* payload, uint8_t len) {
message_t* tmp = ptr;
ptr = msg;
post processTask();
return tmp;
}
Swetha
[email protected]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help